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 c207947508
integration-cli: DockerPluginSuite: use gotest.tools compare utilities
Some of these tests are failing (but not enabled in CI), but the current output
doesn't provide any details on the failure, so this patch is just to improve the
test output to allow debugging the actual failure.

Before this, tests would fail like:

    make BIND_DIR=. TEST_FILTER=TestPluginInstallImage test-integration
    ...
    === FAIL: amd64.integration-cli TestDockerPluginSuite/TestPluginInstallImage (15.22s)
        docker_cli_plugins_test.go:220: assertion failed: expression is false: strings.Contains(out, `Encountered remote "application/vnd.docker.container.image.v1+json"(image) when fetching`)
        --- FAIL: TestDockerPluginSuite/TestPluginInstallImage (15.22s)

With this patch, tests provide more useful output:

    make BIND_DIR=. TEST_FILTER=TestPluginInstallImage test-integration
    ...
    === FAIL: amd64.integration-cli TestDockerPluginSuite/TestPluginInstallImage (1.15s)
    time="2022-10-18T10:21:22Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json"
    time="2022-10-18T10:21:22Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json" digest="sha256:bee151d3fef5c1f787e7846efe4fa42b25a02db4e7543e54e8c679cf19d78598"
mediatype=application/vnd.docker.plugin.v1+json size=522
    time="2022-10-18T10:21:22Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json"
    time="2022-10-18T10:21:22Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json" digest="sha256:bee151d3fef5c1f787e7846efe4fa42b25a02db4e7543e54e8c679cf19d78598"
mediatype=application/vnd.docker.plugin.v1+json size=522
        docker_cli_plugins_test.go:221: assertion failed: string "Error response from daemon: application/vnd.docker.distribution.manifest.v1+prettyjws not supported\n" does not contain "Encountered remote
\"application/vnd.docker.container.image.v1+json\"(image) when fetching"
        --- FAIL: TestDockerPluginSuite/TestPluginInstallImage (1.15s)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-11-01 17:27:18 +01:00
..
checker
cli
daemon
environment
fixtures
requirement
testdata
benchmark_test.go
check_test.go
daemon_swarm_hack_test.go
docker_api_attach_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_build_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_build_windows_test.go
docker_api_containers_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_containers_unix_test.go
docker_api_containers_windows_test.go
docker_api_exec_resize_test.go
docker_api_exec_test.go
docker_api_images_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_inspect_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_logs_test.go
docker_api_network_test.go
docker_api_stats_test.go
docker_api_swarm_node_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_swarm_service_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_api_swarm_test.go
docker_api_test.go
docker_cli_attach_test.go
docker_cli_attach_unix_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_build_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_build_unix_test.go
docker_cli_by_digest_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02: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 integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_daemon_plugins_test.go
docker_cli_daemon_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_events_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_events_unix_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_exec_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_exec_unix_test.go
docker_cli_external_volume_driver_test.go
docker_cli_health_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_history_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_images_test.go
docker_cli_import_test.go
docker_cli_info_test.go
docker_cli_info_unix_test.go
docker_cli_inspect_test.go integration(-cli): remove some redundant formatting 2022-10-08 17:41:39 +02:00
docker_cli_links_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_login_test.go
docker_cli_logout_test.go
docker_cli_logs_test.go
docker_cli_netmode_test.go
docker_cli_network_test.go
docker_cli_network_unix_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_plugins_logdriver_test.go
docker_cli_plugins_test.go integration-cli: DockerPluginSuite: use gotest.tools compare utilities 2022-11-01 17:27:18 +01:00
docker_cli_port_test.go
docker_cli_proxy_test.go
docker_cli_prune_test.go
docker_cli_prune_unix_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_ps_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_pull_local_test.go
docker_cli_pull_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_push_test.go
docker_cli_registry_user_agent_test.go
docker_cli_restart_test.go
docker_cli_rmi_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_run_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_run_unix_test.go
docker_cli_save_load_test.go
docker_cli_save_load_unix_test.go
docker_cli_search_test.go
docker_cli_service_create_test.go
docker_cli_service_health_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_service_logs_test.go
docker_cli_service_scale_test.go
docker_cli_sni_test.go
docker_cli_start_test.go
docker_cli_stats_test.go
docker_cli_swarm_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_swarm_unix_test.go integration-cli: fix empty-lines (revive) 2022-09-28 01:58:49 +02:00
docker_cli_top_test.go
docker_cli_update_test.go
docker_cli_update_unix_test.go
docker_cli_userns_test.go
docker_cli_v2_only_test.go
docker_cli_volume_test.go
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
requirements_unix_test.go
test_vars_test.go
test_vars_unix_test.go
test_vars_windows_test.go
utils_test.go