1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration-cli
Sebastiaan van Stijn 585c147b7a
fix flaky TestRunContainerWithRmFlag tests
This attempts to fix CI flakiness on the TestRunContainerWithRmFlagCannotStartContainer
and TestRunContainerWithRmFlagExitCodeNotEqualToZero tests.

These tests;

- get a list of all container ID's
- run a container with `--rm`
- wait for it to exit
- checks that the list of all container IDs is empty

The last step assumes that no other tests are running on the same daemon; if
another test is running, there may be other containers present (unrelated to
the test).

This patch updates the tests to use a `docker inspect` to verify the container
no longer exists afterwards.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-02 16:55:44 +02:00
..
checker
cli
daemon
environment
fixtures integration-cli: fix test rogue certs 2022-05-19 10:54:31 +02:00
requirement
testdata
benchmark_test.go
check_test.go panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
daemon_swarm_hack_test.go
docker_api_attach_test.go Make it explicit raw|multiplexed stream implementation being used 2022-05-12 11:36:31 +02:00
docker_api_build_test.go
docker_api_build_windows_test.go
docker_api_containers_test.go client: ContainerStop(), ContainerRestart(): support stop-signal 2022-04-20 21:29:34 +02:00
docker_api_containers_unix_test.go
docker_api_containers_windows_test.go Windows: require Windows Server RS5 / ltsc2019 (build 17763) as minimum 2022-02-18 22:58:28 +01:00
docker_api_exec_resize_test.go
docker_api_exec_test.go api/server/httputils: add ReadJSON() utility 2022-04-11 21:37:51 +02:00
docker_api_images_test.go Windows: require Windows Server RS5 / ltsc2019 (build 17763) as minimum 2022-02-18 22:58:28 +01:00
docker_api_inspect_test.go
docker_api_logs_test.go
docker_api_network_test.go
docker_api_stats_test.go
docker_api_swarm_node_test.go
docker_api_swarm_service_test.go
docker_api_swarm_test.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
docker_api_test.go
docker_cli_attach_test.go
docker_cli_attach_unix_test.go
docker_cli_build_test.go all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
docker_cli_build_unix_test.go
docker_cli_by_digest_test.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
docker_cli_commit_test.go
docker_cli_cp_from_container_test.go
docker_cli_cp_test.go
docker_cli_cp_to_container_test.go
docker_cli_cp_to_container_unix_test.go
docker_cli_cp_utils_test.go
docker_cli_create_test.go some cleaning up of isolation checks, and platform information 2022-02-18 22:58:37 +01:00
docker_cli_daemon_plugins_test.go
docker_cli_daemon_test.go integration-cli: TestRemoveContainerAfterLiveRestore use overlay2 2022-05-24 17:28:14 +02:00
docker_cli_events_test.go all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
docker_cli_events_unix_test.go
docker_cli_exec_test.go
docker_cli_exec_unix_test.go
docker_cli_external_volume_driver_test.go api/types: replace uses of deprecated types.Volume with volume.Volume 2022-04-21 19:50:59 +02:00
docker_cli_health_test.go
docker_cli_history_test.go
docker_cli_images_test.go filters: lowercase error 2022-03-18 09:44:53 +01:00
docker_cli_import_test.go
docker_cli_info_test.go
docker_cli_info_unix_test.go
docker_cli_inspect_test.go
docker_cli_links_test.go
docker_cli_login_test.go
docker_cli_logout_test.go test: use T.Setenv to set env vars in tests 2022-04-23 17:44:16 +08:00
docker_cli_logs_bench_test.go
docker_cli_logs_test.go
docker_cli_netmode_test.go
docker_cli_network_test.go
docker_cli_network_unix_test.go
docker_cli_plugins_logdriver_test.go
docker_cli_plugins_test.go
docker_cli_port_test.go
docker_cli_proxy_test.go
docker_cli_prune_unix_test.go
docker_cli_ps_test.go Pass TestPsListContainersFilterCreated if other created containers exist 2022-03-27 13:26:47 +11:00
docker_cli_pull_local_test.go test: use T.Setenv to set env vars in tests 2022-04-23 17:44:16 +08:00
docker_cli_pull_test.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
docker_cli_push_test.go
docker_cli_registry_user_agent_test.go
docker_cli_restart_test.go integration-cli: refactor TestStartReturnCorrectExitCode 2022-05-19 21:19:10 +02:00
docker_cli_rmi_test.go
docker_cli_run_test.go fix flaky TestRunContainerWithRmFlag tests 2022-06-02 16:55:44 +02:00
docker_cli_run_unix_test.go all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
docker_cli_save_load_test.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
docker_cli_save_load_unix_test.go
docker_cli_search_test.go filters: lowercase error 2022-03-18 09:44:53 +01:00
docker_cli_service_create_test.go
docker_cli_service_health_test.go
docker_cli_service_logs_test.go
docker_cli_service_scale_test.go
docker_cli_sni_test.go
docker_cli_start_test.go integration-cli: refactor TestStartReturnCorrectExitCode 2022-05-19 21:19:10 +02:00
docker_cli_stats_test.go
docker_cli_swarm_test.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
docker_cli_swarm_unix_test.go
docker_cli_top_test.go
docker_cli_update_unix_test.go
docker_cli_userns_test.go
docker_cli_v2_only_test.go
docker_cli_volume_test.go filters: lowercase error 2022-03-18 09:44:53 +01:00
docker_deprecated_api_v124_test.go
docker_deprecated_api_v124_unix_test.go
docker_hub_pull_suite_test.go
docker_utils_test.go
events_utils_test.go
fixtures_linux_daemon_test.go
requirements_test.go some cleaning up of isolation checks, and platform information 2022-02-18 22:58:37 +01:00
requirements_unix_test.go Remove "seccomp" build tag 2022-05-12 14:48:35 -07:00
test_vars_test.go
test_vars_unix_test.go
test_vars_windows_test.go
utils_test.go