Alban Crequy
efe92216f1
functional tests: update string from systemd
...
Since systemd commit f2341e ("core,network: major per-object logging rework"),
systemd does not log "main process exited" but "Main process exited" (notice
the uppercase).
Improve the test to accept both strings.
2015-05-12 10:25:13 +02:00
Yifan Gu
320c25e036
rkt/tests: Print out the error info on failures.
...
This can help us to reason about the failures more easily.
2015-05-11 16:21:28 -07:00
Jonathan Boulle
9685f37575
*: adjust copyright header
...
Inspired by a similar change in the Kubernetes project [1], this changes
the copyright header to the more generic "The rkt Authors" rather than
"CoreOS, Inc.", which is only sometimes correct.
https://github.com/GoogleCloudPlatform/kubernetes/commit/6b3a6e6b983f967c88d14d26542ec6e30c49ebd3
2015-05-03 14:29:15 -07:00
Alban Crequy
068a233a95
functional tests: test multiple systemd
...
Use Semaphore's parallel build capability to test rkt against various
systemd versions.
2015-04-28 17:24:52 +02:00
Alban Crequy
751be11715
functional tests: add new systemd v219 dependencies
2015-04-28 17:24:52 +02:00
Alban Crequy
cb8c6f5275
functional tests: environment: fix a race between child.Close() and ctx.reset()
...
Avoid child.Close(), prefer child.Wait()
Depending on the kernel version, it's not allowed to delete a directory
if it is a mount point, even in another mount namespace.
2015-04-28 16:28:17 +02:00
Alban Crequy
8c44d9a50c
functional tests: better panic error messages
...
printing a string is more readable than printing a array of bytes
2015-04-28 16:28:10 +02:00
Krzesimir Nowak
638a8f0b82
functional tests: Fix gofmt and go vet issues
2015-04-28 12:14:50 +02:00
Krzesimir Nowak
4bded6e58b
functional tests: Change $TMPDIR to ^TMPDIR^
...
This is to avoid confusion - $TMPDIR is replaced before the command is
ran. Also, it's more consistent - we use this format for RKT_BIN.
2015-04-28 11:29:29 +02:00
Krzesimir Nowak
d302fdbf89
functional tests: Fix rkt run context use
...
Create just one context for the test and reset it after each
iteration, so unused directories are removed immediately instead of
during deferred cleanup.
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
f9a66a464f
functional tests: Replace leftover "../bin/rkt" with rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
a4d595e719
functional tests: Use enumeration to specify config directory
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
25e2a39a28
functional tests: Drop dead code for destructive tests
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
eb458e526a
functional tests: Port volume tests to rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
3bc4b51880
functional tests: Port interactive tests to rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
0a161531fd
functional tests: Port capabilities tests to rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
ec857f6ed4
functional tests: Port env tests to rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
493b30d5b6
functional tests: Port exit tests to rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
68bb9a923e
functional tests: Port auth tests to rkt run context
2015-04-28 11:29:14 +02:00
Krzesimir Nowak
776aa80ba1
functional tests: Add rkt run context
...
This context manages rkt's data directory, local and system
configuration directories. They are by default placed somewhere in
/tmp dir. The context also provides basic rkt command to call, so rkt
uses those directories instead of default ones.
With this context tests do not have to be destructive - they can be
self-contained.
2015-04-28 11:29:14 +02:00
Alban Crequy
2ad1473030
functional tests: add a test for non-root apps
2015-04-24 10:47:58 +02:00
Alban
ce8912295f
Merge pull request #808 from endocode/alban/functests_deps
...
Semaphore: reduce dependencies for faster functional tests
2015-04-23 15:06:47 +02:00
Alban Crequy
3f1d704716
functional tests: use the correct version of go when using sudo
...
The functional tests use sudo because the tests need to be run as root.
Sudo does not preserve $PATH. When the user use a home-built go, it
might have a different version thatn the system-wide installed go. It
causes problems when linking the tests with github.com/coreos/rkt/common
This patch fixes the issue by using the go environment of the user.
2015-04-23 12:33:56 +02:00
Alban Crequy
808e9f9166
Semaphore: reduce dependencies
...
The new Semaphore platform has most packages already installed.
Use awk instead of gawk in functional tests: awk is more commonly
installed than gawk.
2015-04-23 10:57:14 +02:00
Krzesimir Nowak
21ccdbd1cd
*: Standardize on "system" and "local" configuration
...
So "vendor" config becomes "system" and "custom" one - "local".
2015-04-22 13:26:59 +02:00
Krzesimir Nowak
1ee0fbc6b3
rkt: Kill Default{Vendor,Custom}Path constants
2015-04-22 12:21:49 +02:00
Krzesimir Nowak
b41508838f
functional tests: Fix imports and formatting
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
939006ff20
functional tests: Import test-aci-auth-server
...
It is now known as test-auth-server and it contains an aci
subpackage. Later we can add a docker package to test docker auth.
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
fe12a88642
functional tests: Address some more review issues
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
c3c4da3619
functional tests: Simplify running the test server
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
b46a66d982
functional tests: Rewrite some tests to table style
...
Also remove some one-line functions that weren't used in more than one
place.
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
9bdb2ed766
functional tests: Rename functions for destructive tests
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
54d64e9603
functional tests: Move some functions to common file
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
87b5a5b53c
functional tests: Rename env var enabling destructive tests
2015-04-22 10:40:49 +02:00
Krzesimir Nowak
334d07aa41
functional tests: Make sure we run destructive tests on semaphore
2015-04-22 10:40:10 +02:00
Krzesimir Nowak
0504cc71d3
functional tests: Auth tests
2015-04-22 10:38:35 +02:00
Krzesimir Nowak
8a88563693
functional tests: Add and use test-aci-auth-server
2015-04-22 10:38:35 +02:00
Alban Crequy
e7d4e88f36
tests/install-deps.sh: add gawk for Semaphore
2015-04-21 10:26:04 +02:00
Alban Crequy
6a45b922ae
functional tests: rkt-enter: check environment variables
...
This tests that the "rkt enter" command get the environment variables
set in various ways:
- from the manifest
- from -set-env
- from -inherit-env
This is a regression test for https://github.com/coreos/rkt/issues/433
I would like this test merged before we start implementing the support
for starting non-root apps in https://github.com/coreos/rkt/issues/539
2015-04-21 10:26:04 +02:00
Alban Crequy
6334a1c273
functional tests: new test for rkt run -interactive
...
It contains a regression test for
https://github.com/coreos/rkt/issues/758
It tests whether a tty is given to the application.
It runs rkt with and without parameters on the command line.
2015-04-21 10:12:25 +02:00
Jonathan Boulle
9ad8599d71
Merge pull request #791 from endocode/alban/functests_scripts
...
functional tests: improve scripts
2015-04-21 00:45:06 -07:00
Alban Crequy
6b45569d71
functional tests: improve scripts
...
It is now possible to run only one functional test, see the instructions
in tests/test.
The build script is also more reliable.
2015-04-20 12:05:07 +02:00
Alban Crequy
85008374f2
functional tests: new tests for capabilities
2015-04-20 10:15:06 +02:00
Alban Crequy
799b76ea83
functional tests: use gexpect
...
So it is easier to generate ACIs near the test that needs them.
2015-04-14 16:22:38 +02:00
Alban Crequy
53761c0633
functional tests: fix README.md about CircleCI
2015-04-10 19:48:09 +02:00
Alban Crequy
71e77580da
functional tests: new tests for volumes
2015-04-10 15:43:11 +02:00
Alban Crequy
dac301ce2a
functional tests: more environment variable tests
...
rename ACIs based on what they do rather than which tests use them
2015-04-10 13:42:00 +02:00
Alban Crequy
d9425f2756
Functional tests: create ACIs from a clean rootfs
2015-04-10 13:41:29 +02:00
Alban Crequy
ba64087d74
functional tests: define variables that tests could use
2015-04-10 13:17:33 +02:00
Jonathan Boulle
3012ba3e6e
tests: various cleanup to initial functional tests
...
- Create general tests/README.md describing current situation.
- Remove circle.yml for now until we have it working.
- Add copyright header to inspects.go
2015-04-09 18:09:36 -07:00