moby/integration-cli
Dennis Chen 57d85e7e54 Clean the teardown process of network test
We need to clean the resources created in some test cases, else
in some cases we'll get below error for other tests:

> FAIL: docker_experimental_network_test.go:37: DockerNetworkSuite.TestDockerNetworkMacvlanPersistance
>  docker_experimental_network_test.go:44:
> ...
> Command:  ip link add dm-dummy0 type dummy
> ExitCode: 2
> Error:    exit status 2
> Stdout:
> Stderr:   RTNETLINK answers: File exists
> ...

Logically, each test case should be independent, the failure of previous
test case should not have side-effect for the test cases followed.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-02-23 08:54:52 +00:00
..
checker Add canonical import comment 2018-02-05 16:51:57 -05:00
cli Add canonical import comment 2018-02-05 16:51:57 -05:00
daemon Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
environment Add canonical import comment 2018-02-05 16:51:57 -05:00
fixtures Unify the frozen images to the multi-arch version 2018-02-14 03:59:04 +00:00
registry Add canonical import comment 2018-02-05 16:51:57 -05:00
request Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
requirement Add canonical import comment 2018-02-05 16:51:57 -05:00
benchmark_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
check_test.go Remove deprecated environment.ExperimentalDaemon() 2018-01-15 15:30:05 +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 Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_build_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_containers_test.go Migrate some calls to new client function 2018-02-08 16:21:45 +01:00
docker_api_containers_windows_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_create_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_events_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_api_exec_resize_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_exec_test.go libcontainerd: fix leaking container/exec state 2017-11-13 15:48:21 -08:00
docker_api_images_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_inspect_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_api_ipcmode_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_logs_test.go Prevent potential panic in TestLogsAPIUntil 2017-12-14 23:20:44 -08:00
docker_api_network_test.go Golint: remove redundant ifs 2018-01-15 00:42:25 +01:00
docker_api_stats_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +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_service_test.go Explicitly add --detach to service CLI calls 2017-09-27 16:17:55 -07:00
docker_api_swarm_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_api_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_api_volumes_test.go Various fixes 2017-09-15 16:01:15 +02:00
docker_cli_attach_test.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
docker_cli_attach_unix_test.go Fix TestAttachAfterDetach to work with latest client 2018-02-20 18:34:25 -05:00
docker_cli_build_test.go Unify the frozen images to the multi-arch version 2018-02-14 03:59:04 +00:00
docker_cli_build_unix_test.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
docker_cli_by_digest_test.go Remove deprecated environment.DockerBasePath() 2018-01-15 15:29:26 +01:00
docker_cli_commit_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_cli_config_create_test.go Add integration test coverage for configs 2017-05-11 10:18:44 -07:00
docker_cli_config_inspect_test.go Add integration test coverage for configs 2017-05-11 10:18:44 -07:00
docker_cli_cp_from_container_test.go Remove a test that was moved to docker/cli 2017-10-30 18:39:11 -04:00
docker_cli_cp_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_cp_to_container_test.go Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
docker_cli_cp_to_container_unix_test.go Remove deprecated environment.DockerBasePath() 2018-01-15 15:29:26 +01:00
docker_cli_cp_utils_test.go Optimize some wrong usage and spelling 2017-09-07 09:44:08 +08:00
docker_cli_create_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_cli_daemon_plugins_test.go Cleanup volume plugin test with bad assumptions 2018-02-20 16:57:20 -05:00
docker_cli_daemon_test.go Move log validator logic after plugins are loaded 2018-02-15 11:53:11 -05:00
docker_cli_events_test.go Refactor commit 2018-02-07 15:09:06 -05:00
docker_cli_events_unix_test.go Avoid failing the test if container is already stopped 2017-09-05 17:19:57 +02:00
docker_cli_exec_test.go Fix tests creating zombie processes 2017-10-20 07:11:38 -07:00
docker_cli_exec_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_export_import_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_external_graphdriver_unix_test.go Remove deprecated environment.ExperimentalDaemon() 2018-01-15 15:30:05 +01:00
docker_cli_external_volume_driver_unix_test.go Remove deprecated environment.ExperimentalDaemon() 2018-01-15 15:30:05 +01:00
docker_cli_health_test.go Fix GitHub spelling 2017-10-07 00:10:24 +08: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 Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_import_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_info_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_cli_info_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_inspect_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_cli_links_test.go Remove testutil.ConvertSliceOfStringsToMap 2017-08-22 17:15:26 -04:00
docker_cli_login_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
docker_cli_logout_test.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
docker_cli_logs_bench_test.go Fixes some issues with jsonfile write/read 2016-03-21 11:05:58 -04:00
docker_cli_logs_test.go Fix tests creating zombie processes 2017-10-20 07:11:38 -07:00
docker_cli_netmode_test.go Restore error type in FindNetwork 2017-11-29 11:22:57 -08:00
docker_cli_network_unix_test.go Remove deprecated environment.ExperimentalDaemon() 2018-01-15 15:30:05 +01:00
docker_cli_plugins_logdriver_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_cli_plugins_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
docker_cli_port_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_proxy_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_prune_unix_test.go Explicitly add --detach to service CLI calls 2017-09-27 16:17:55 -07:00
docker_cli_ps_test.go Clean some cli-only integration tests 2018-02-19 11:19:19 +01:00
docker_cli_pull_local_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_pull_test.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
docker_cli_pull_trusted_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_push_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_registry_user_agent_test.go Simplify DockerRegistrySuite.TestUserAgentPassThrough() 2017-06-12 20:18:03 +02:00
docker_cli_restart_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01: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 Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_cli_run_test.go Unify the frozen images to the multi-arch version 2018-02-14 03:59:04 +00:00
docker_cli_run_unix_test.go Fix tests creating zombie processes 2017-10-20 07:11:38 -07:00
docker_cli_save_load_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_save_load_unix_test.go Update tests to use icmd 2017-08-25 12:07:30 -04: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 Migrate TestSecretInspect from integration-cli to api tests 2018-02-02 22:23:12 +00:00
docker_cli_service_create_test.go Fix issue of ExitCode and PID not show up in Task.Status.ContainerStatus 2018-01-31 15:35:19 +00:00
docker_cli_service_health_test.go Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_service_logs_test.go Fix tests creating zombie processes 2017-10-20 07:11:38 -07:00
docker_cli_service_scale_test.go remove --detach on scale 2017-09-27 17:47:51 -07:00
docker_cli_service_update_test.go Explicitly add --detach to service CLI calls 2017-09-27 16:17:55 -07:00
docker_cli_sni_test.go Disable flakey TestClientSetsTLSServerName 2016-02-02 19:56:31 -08:00
docker_cli_start_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_stats_test.go Fix tests creating zombie processes 2017-10-20 07:11:38 -07:00
docker_cli_swarm_test.go Update integration test to account for SwarmKit change 2018-02-12 23:25:51 +01:00
docker_cli_swarm_unix_test.go Added support for swarm service isolation mode 2017-10-30 16:16:18 +01:00
docker_cli_tag_test.go Remove support for referencing images by 'repository:shortid' 2017-12-14 21:10:29 -08:00
docker_cli_top_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_cli_update_unix_test.go [integration-cli] fix s390x flaky test 2017-10-03 12:13:29 -04:00
docker_cli_userns_test.go Remove RunCommandPipelineWithOutput 2017-08-22 17:15:26 -04:00
docker_cli_v2_only_test.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
docker_cli_volume_test.go Various fixes 2017-09-15 16:01:15 +02:00
docker_cli_wait_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_deprecated_api_v124_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
docker_deprecated_api_v124_unix_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_experimental_network_test.go Clean the teardown process of network test 2018-02-23 08:54:52 +00:00
docker_hub_pull_suite_test.go Remove deprecated environment.ExperimentalDaemon() 2018-01-15 15:30:05 +01:00
docker_utils_test.go Migrate some calls to new client function 2018-02-08 16:21:45 +01:00
events_utils_test.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
fixtures_linux_daemon_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
requirements_test.go Merge pull request #34911 from dnephin/new-ci-entrypoint 2017-09-26 11:50:44 -07:00
requirements_unix_test.go Check integration test requirements using daemon 2017-09-14 19:27:09 +02:00
test_vars_exec_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_noexec_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_noseccomp_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_seccomp_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00
test_vars_unix_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_windows_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
trust_server_test.go Remove duplicate calls for getting an APIClient 2018-02-20 17:27:24 -05:00
utils_test.go Remove deprecated environment.DaemonPlatform() 2018-01-15 15:32:06 +01:00