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
Flavio Crisciani 1c4286bcff
Adding test for docker/docker#8795
When a container was being destroyed was possible to have
flows in conntrack left behind on the host.
If a flow is present into the conntrack table, the packet
processing will skip the POSTROUTING table of iptables and
will use the information in conntrack to do the translation.
For this reason is possible that long lived flows created
towards a container that is destroyed, will actually affect
new flows incoming to the host, creating erroneous conditions
where traffic cannot reach new containers.
The fix takes care of cleaning them up when a container is
destroyed.

The test of this commit is actually reproducing the condition
where an UDP flow is established towards a container that is then
destroyed. The test verifies that the flow established is gone
after the container is destroyed.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-04-10 21:31:35 -07:00
..
checker
cli [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
daemon cli: Allow service's networks to be updated 2017-04-07 16:46:25 -07:00
environment Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
fixtures Fix flaky TestStackRemove test. 2017-03-24 15:31:08 -04:00
registry Revert "Planned 1.13 deprecation: email from login" 2017-03-15 10:43:18 -07:00
request Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
requirement
benchmark_test.go
check_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
daemon_swarm_hack_test.go Small cleanups on integration cli 2017-01-12 16:57:59 +01:00
docker_api_attach_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_auth_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_build_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_containers_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_api_create_test.go validate healthcheck params in daemon side 2017-01-29 13:35:32 +08:00
docker_api_events_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_exec_resize_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_exec_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_images_test.go Merge pull request #30763 from ripcurld0/fix_30714 2017-03-28 10:20:59 +02:00
docker_api_info_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_inspect_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_api_inspect_unix_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_logs_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_network_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_resize_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_stats_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_stats_unix_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_swarm_node_test.go split docker_api_swarm_test.go into multiple files 2017-02-11 00:18:01 +08:00
docker_api_swarm_secret_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
docker_api_swarm_service_test.go Add integration test for START_FIRST update order 2017-04-06 17:23:36 -07:00
docker_api_swarm_test.go Add integration test for START_FIRST update order 2017-04-06 17:23:36 -07:00
docker_api_test.go Fix TestAPIDockerAPIVersion on windows 2017-03-29 10:28:51 +02:00
docker_api_update_unix_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_version_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_api_volumes_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_cli_attach_test.go
docker_cli_attach_unix_test.go
docker_cli_authz_plugin_v2_test.go When authz plugin is disabled, remove from authz middleware chain. 2017-03-22 12:07:39 -07:00
docker_cli_authz_unix_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_build_test.go Merge pull request #31352 from dnephin/allow-arg-in-fromt 2017-04-10 13:23:40 -04:00
docker_cli_build_unix_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_cli_by_digest_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_commit_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_config_test.go Update trustedCmd to be compatible with testutil/cmd 2017-01-09 11:07:05 +01:00
docker_cli_cp_from_container_test.go
docker_cli_cp_test.go Remove most of the runCommandWithOutput from integration tests 2017-01-30 10:54:06 +01:00
docker_cli_cp_to_container_test.go fix some ineffectual assignments 2017-01-24 11:16:19 +01:00
docker_cli_cp_to_container_unix_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_cp_utils.go
docker_cli_create_test.go Fix issue #30201 – clean trust folder at the end of the test 2017-03-28 16:12:41 +02:00
docker_cli_create_unix_test.go validate mount path for tmpfs 2017-01-20 06:01:48 +00:00
docker_cli_daemon_plugins_test.go Add missing test for daemon kill with plugins running. 2017-03-22 14:38:55 -07:00
docker_cli_daemon_test.go Add test over ipv6 and container run in host network 2017-04-07 16:58:20 -07:00
docker_cli_diff_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_events_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_events_unix_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_exec_test.go Merge pull request #32076 from tmp6154/master 2017-04-03 22:30:28 +02:00
docker_cli_exec_unix_test.go
docker_cli_experimental_test.go Small cleanups on integration cli 2017-01-12 16:57:59 +01:00
docker_cli_export_import_test.go Update trustedCmd to be compatible with testutil/cmd 2017-01-09 11:07:05 +01:00
docker_cli_external_graphdriver_unix_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_external_volume_driver_unix_test.go don't obfuscate error during create 2017-04-03 21:04:40 -04:00
docker_cli_health_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_help_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_cli_history_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_images_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_import_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_cli_info_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_info_unix_test.go
docker_cli_inspect_test.go do not fail fast when executing inspect command 2017-03-10 16:09:09 +08:00
docker_cli_kill_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_cli_links_test.go Remove most of the runCommandWithOutput from integration tests 2017-01-30 10:54:06 +01:00
docker_cli_links_unix_test.go
docker_cli_login_test.go Revert "Planned 1.13 deprecation: email from login" 2017-03-15 10:43:18 -07:00
docker_cli_logout_test.go
docker_cli_logs_bench_test.go
docker_cli_logs_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_cli_nat_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_netmode_test.go
docker_cli_network_unix_test.go Adding test for docker/docker#8795 2017-04-10 21:31:35 -07:00
docker_cli_oom_killed_test.go
docker_cli_pause_test.go Remove most of the runCommandWithOutput from integration tests 2017-01-30 10:54:06 +01:00
docker_cli_plugins_test.go Merge pull request #30047 from duglin/distError 2017-03-10 16:44:49 -08:00
docker_cli_port_test.go
docker_cli_proxy_test.go Update trustedCmd to be compatible with testutil/cmd 2017-01-09 11:07:05 +01:00
docker_cli_prune_unix_test.go Add --filter until=<timestamp> for docker container/image prune 2017-01-04 14:16:42 -08:00
docker_cli_ps_test.go 28722: List of containers with networkID filter is not working 2017-03-31 08:57:09 +00:00
docker_cli_pull_local_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_pull_test.go Block Windows images on Linux 2017-02-02 11:07:30 -08:00
docker_cli_pull_trusted_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_push_test.go Revert retry count change 2017-04-05 16:07:43 -07:00
docker_cli_registry_user_agent_test.go Revert "Planned 1.13 deprecation: email from login" 2017-03-15 10:43:18 -07:00
docker_cli_rename_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_restart_test.go Fix start/restart of detached container 2017-03-22 02:38:26 -07:00
docker_cli_rm_test.go create unit tests for rm (running, paused, restarting) errormessages 2017-04-03 21:58:05 +02:00
docker_cli_rmi_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_run_test.go cli: add --mount to docker run 2017-04-05 04:52:08 +00:00
docker_cli_run_unix_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_cli_save_load_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_save_load_unix_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_search_test.go fix some ineffectual assignments 2017-01-24 11:16:19 +01:00
docker_cli_secret_create_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
docker_cli_secret_inspect_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
docker_cli_secret_ls_test.go make secret ls support filters in CLI 2017-03-27 10:16:45 +08:00
docker_cli_service_create_test.go Synchronous service create and service update 2017-04-03 09:46:01 -07:00
docker_cli_service_health_test.go Synchronous service create and service update 2017-04-03 09:46:01 -07:00
docker_cli_service_logs_experimental_test.go refactor logs and support service logs /w tty 2017-04-06 17:54:11 -07:00
docker_cli_service_scale_test.go
docker_cli_service_update_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
docker_cli_sni_test.go
docker_cli_stack_test.go Fix flaky TestStackRemove test. 2017-03-24 15:31:08 -04:00
docker_cli_start_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_cli_stats_test.go Send "Name" and "ID" when stating stopped containers 2017-02-09 09:46:59 +08:00
docker_cli_stop_test.go
docker_cli_swarm_test.go cli: Allow service's networks to be updated 2017-04-07 16:46:25 -07:00
docker_cli_swarm_unix_test.go skip plugin test on non x86 architectures 2017-03-07 09:28:10 -05:00
docker_cli_tag_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_top_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_update_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_cli_update_unix_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_cli_userns_test.go
docker_cli_v2_only_test.go Fix leaked connections in integration tests 2017-01-11 14:48:48 -08:00
docker_cli_version_test.go
docker_cli_volume_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_wait_test.go Update trustedCmd to be compatible with testutil/cmd 2017-01-09 11:07:05 +01:00
docker_deprecated_api_v124_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_deprecated_api_v124_unix_test.go Add a new request package in integration-cli 2017-01-03 11:49:30 +01:00
docker_experimental_network_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
docker_hub_pull_suite_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
docker_utils_test.go [test-integration] Migrate some more tests to cli package 2017-03-28 15:17:31 +02:00
events_utils_test.go
fixtures_linux_daemon_test.go Move TearDownTest cleaning to environment package 2017-03-01 21:04:11 +01:00
fixtures_test.go Move TearDownTest cleaning to environment package 2017-03-01 21:04:11 +01:00
requirements_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
requirements_unix_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
test_vars_exec_test.go
test_vars_noexec_test.go
test_vars_noseccomp_test.go
test_vars_seccomp_test.go
test_vars_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
test_vars_unix_test.go
test_vars_windows_test.go
trust_server_test.go Merge pull request #30151 from tonistiigi/fix-defunct 2017-01-16 08:55:16 +01:00
utils_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00