-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #492 from cevich/test_fixes
Collection of fixes for failing tests w/ current version of docker
- Loading branch information
Showing
19 changed files
with
606 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[docker_cli/iptable] | ||
subsubtests = iptable_remove | ||
|
||
[docker_cli/iptable/iptable_remove] | ||
#: container's shell | ||
bash_cmd = /bin/bash | ||
#: Arguments to pass to run command in addition to -d and --name | ||
run_args_csv = --expose,1234,--publish,1234:1234 | ||
#: container's shell command | ||
bash_cmd = /bin/bash -c 'sleep 3s' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,63 @@ | ||
[docker_cli/wait] | ||
subsubtests = no_wait,wait_first,wait_last,wait_missing | ||
docker_timeout = 60 | ||
#: modifies the running container options | ||
run_options_csv = --detach,--interactive | ||
#: list of used containers (use _$name to override config variables) | ||
containers = cont0 cont1 cont2 | ||
#: executed command on container called ``_cont0`` | ||
exec_cmd_cont0 = sleep 10; exit 1 | ||
#: executed command on container called ``_cont1`` | ||
exec_cmd_cont1 = exit 2 | ||
#: executed command on container called ``_cont2`` | ||
exec_cmd_cont2 = exit 3 | ||
#: Identify containers by True=name,False=id,RANDOM=random | ||
use_names = RANDOM | ||
#: random_seed - can be set to override the initial random seed used in test | ||
random_seed = | ||
#: which containers we should wait for. Either use index of the | ||
#: the container or '_' + string. The leading char will be removed! | ||
wait_for = | ||
#: Error regular expression which should match on missing container name ``%%s`` | ||
missing_stderr = Error response from daemon: wait: no such \w+: %%s | ||
#: When 'yes', invert regex failure meaning for test result | ||
invert_missing = no | ||
|
||
[docker_cli/wait/no_wait] | ||
wait_for = 1 2 | ||
|
||
[docker_cli/wait/wait_first] | ||
wait_for = 0 1 2 | ||
|
||
[docker_cli/wait/wait_last] | ||
wait_for = 2 1 0 | ||
|
||
[docker_cli/wait/wait_missing] | ||
invert_missing = yes | ||
wait_for = _i_hope_this_container_does_not_exist 0 1 2 _this_one_is_also_missing | ||
subsubtests = Simple, Multi, Sig | ||
|
||
#: CSV list of strings describing how containers are setup, "CREATE", "RUN" | ||
#: or "NONE". Each value represents a separate container and all ``target_*`` | ||
#: lists must contain exactly the same number of items. | ||
target_setups = RUN | ||
|
||
#: CSV list of operations to perform on each container during the test | ||
#: wait command: | ||
#: {n} | ||
#: {t} * ``STOP`` - Use ``docker stop`` on the target container | ||
#: {t} * ``KILL`` - Use ``docker kill`` on the target container | ||
#: {t} * ``<n>`` - Send signal number ``<n>`` to target container | ||
#: {t} * ``REMV`` - Use ``docker rm --force`` on the target container | ||
#: {t} * ``NONE`` - Do nothing | ||
#: {n} | ||
target_waits = NONE | ||
|
||
#: CSV list of sleep times for each target, must have same number of items | ||
#: as ``target_setups`` and ``target_waits``. Do not rely on timing for | ||
#: precise synchronization! | ||
target_sleeps = 0.5 | ||
|
||
#: Expected exit code from wait command | ||
exit = 0 | ||
|
||
#: (optional) Regular expression that much match wait command stdout | ||
stdout = ^0\n$ | ||
|
||
#: (optional) Regular expression that much match wait command stderr | ||
stderr = | ||
|
||
#: Timeout for the target docker command in seconds | ||
target_timeout = 10 | ||
|
||
#: Timeout for the wait command itself | ||
docker_timeout = 20 | ||
|
||
#: Quoted command line to pass to each target container | ||
target_cmd = bash,-c,'trap "echo \"Received Signal 30\"" 30; sleep @SLEEP@s' | ||
|
||
#: CSV run command line options minus --name & image for each target container | ||
target_run = --detach | ||
|
||
#: Run target containers with more verbosity under all conditions | ||
target_verbose = no | ||
|
||
#: Run wait command with more verbosity | ||
wait_verbose = no | ||
|
||
[docker_cli/wait/Multi] | ||
docker_timeout = 20 | ||
target_setups = RUN, RUN, RUN | ||
target_waits = NONE, KILL, NONE | ||
target_sleeps = 1, 5, 3 | ||
stdout = ^0\n137\n0$ | ||
|
||
[docker_cli/wait/Sig] | ||
docker_timeout = 20 | ||
target_setups = RUN | ||
target_waits = 30 | ||
target_sleeps = 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.