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
Brian Goff ebcb7d6b40 Remove string checking in API error handling
Use strongly typed errors to set HTTP status codes.
Error interfaces are defined in the api/errors package and errors
returned from controllers are checked against these interfaces.

Errors can be wraeped in a pkg/errors.Causer, as long as somewhere in the
line of causes one of the interfaces is implemented. The special error
interfaces take precedence over Causer, meaning if both Causer and one
of the new error interfaces are implemented, the Causer is not
traversed.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-08-15 16:01:11 -04:00
..
checker Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
cli Fix ONBUILD COPY 2017-06-02 17:47:03 -04:00
daemon [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
environment Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00
fixtures Testing: Use local plugins, not from hub 2017-07-14 13:24:14 -04:00
registry Revert "Planned 1.13 deprecation: email from login" 2017-03-15 10:43:18 -07:00
request Implement incremental file sync using client session 2017-06-22 11:52:35 -07:00
requirement
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 Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00
daemon_swarm_hack_test.go Small cleanups on integration cli 2017-01-12 16:57:59 +01:00
docker_api_attach_test.go Fix Cache with ONBUILD 2017-06-06 10:52:29 -04: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 Remove client/session package, depend on buildkit's session package 2017-07-28 16:34:23 -07:00
docker_api_containers_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_api_containers_windows_test.go Windows: Add named pipe mount support 2017-08-07 11:34:36 -07:00
docker_api_create_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -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 string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_api_exec_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_api_images_test.go Windows: Enable TestAPIImagesSaveAndLoad 2017-07-31 18:18:49 -07:00
docker_api_info_test.go Fix missing "--version" argument 2017-06-11 23:31:47 +02: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_ipcmode_test.go Test cases for new ipc modes 2017-08-14 11:00:26 +03:00
docker_api_logs_test.go Make TestLogsAPIStdout a bit less racey 2017-05-19 10:17:54 -04: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 Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_api_session_test.go Add long-running client session endpoint 2017-06-22 11:22:41 -07:00
docker_api_stats_test.go Fix flaky TestAPIStatsNoStreamGetCpu 2017-05-10 13:26:04 -07: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_config_test.go choose rpc code to determine status code 2017-06-06 10:08:50 +08: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 choose rpc code to determine status code 2017-06-06 10:08:50 +08:00
docker_api_swarm_service_test.go hide swarm plugins behind experimental flag 2017-08-08 18:33:25 -07:00
docker_api_swarm_test.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
docker_api_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04: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 CreatedAt filed to volume. Display when volume is inspected. 2017-05-26 11:47:02 -07:00
docker_cli_attach_test.go Windows: Disable TestAttachTTYWithoutStdin 2017-07-18 14:23:23 -07:00
docker_cli_attach_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
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 Spelling fixes 2017-07-03 13:13:09 -07:00
docker_cli_build_unix_test.go Move FakeContext to integration-cli/cli/build/context package… 2017-04-11 18:25:49 +02:00
docker_cli_by_digest_test.go Clean some function in docker_utils_test.go 2017-04-12 11:22:32 +02:00
docker_cli_commit_test.go Spelling fixes 2017-07-03 13:13:09 -07: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_config_ls_test.go Add integration test coverage for configs 2017-05-11 10:18:44 -07:00
docker_cli_config_test.go Use actual cli version for TestConfigHTTPHeader 2017-06-01 09:35:30 -07:00
docker_cli_cp_from_container_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_cp_test.go daemon/archive.go: Fix copy routines to preserve UID. 2017-04-12 10:33:19 +00:00
docker_cli_cp_to_container_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_cp_to_container_unix_test.go daemon/archive.go: Fix copy routines to preserve UID. 2017-04-12 10:33:19 +00:00
docker_cli_cp_utils_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_create_test.go Use cli for trusted relate command 2017-04-19 14:04:39 +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 [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
docker_cli_daemon_test.go Test cases for new ipc modes 2017-08-14 11:00:26 +03:00
docker_cli_diff_test.go Introduce cli.Wait* fuctions 2017-04-14 19:27:33 +02:00
docker_cli_events_test.go support cluster events 2017-05-17 11:46:30 -07:00
docker_cli_events_unix_test.go Test cases for new ipc modes 2017-08-14 11:00:26 +03:00
docker_cli_exec_test.go fix tests after CLI update 2017-05-10 20:09:50 -04: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_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 Spelling fixes 2017-07-03 13:13:09 -07:00
docker_cli_external_volume_driver_unix_test.go Add refcount for MountPoint 2017-04-28 16:01:25 -04:00
docker_cli_health_test.go Add container environment variables correctly to the health check 2017-05-21 21:39:00 +03: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 Extract imageProber and ContainerBackend from Builder 2017-05-23 15:12:58 -04: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 [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02: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 string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_kill_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_links_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_links_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_login_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
docker_cli_logout_test.go Disable legacy (v1) registries by default 2017-06-12 11:04:28 +02:00
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 cli.Wait* fuctions 2017-04-14 19:27:33 +02:00
docker_cli_netmode_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_network_unix_test.go Fix api server null pointer def on inspect/ls null ipam-driver networks 2017-08-03 13:35:58 -07:00
docker_cli_oom_killed_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_pause_test.go Allow stopping of paused container 2017-07-12 10:35:48 -04:00
docker_cli_plugins_logdriver_test.go Add logdrivers to /info 2017-04-11 18:07:15 -04:00
docker_cli_plugins_test.go Testing: Use local plugins, not from hub 2017-07-14 13:24:14 -04:00
docker_cli_port_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
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 Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_ps_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04: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 Merge pull request #33005 from alfred-landrum/denied-error 2017-06-13 01:51:18 +02:00
docker_cli_pull_trusted_test.go Use cli for trusted relate command 2017-04-19 14:04:39 +02:00
docker_cli_push_test.go Remove cli/flags package 2017-06-01 13:34:31 -07:00
docker_cli_registry_user_agent_test.go Simplify DockerRegistrySuite.TestUserAgentPassThrough() 2017-06-12 20:18:03 +02:00
docker_cli_rename_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_restart_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02: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 [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_run_test.go Windows: Add named pipe mount support 2017-08-07 11:34:36 -07:00
docker_cli_run_unix_test.go Revert "Block obsolete socket families in the default seccomp profile" 2017-05-09 14:26:00 +01: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 fix expected output in tests 2017-05-05 12:14:30 -07: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 Service alias should not be copied to task alias 2017-06-07 13:05:15 -07: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 Spelling fixes 2017-07-03 13:13:09 -07:00
docker_cli_service_scale_test.go Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_service_update_test.go Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_sni_test.go
docker_cli_stack_test.go Add format to docker stack ls 2017-04-25 16:45:30 +03:00
docker_cli_start_test.go fix expected output in tests 2017-05-05 12:14:30 -07:00
docker_cli_stats_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_stop_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_swarm_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_swarm_unix_test.go Update CLI commit hash 2017-05-18 12:23:28 -07: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 [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_update_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_update_unix_test.go Add --cpus support for docker update 2017-04-06 15:40:12 -07:00
docker_cli_userns_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_v2_only_test.go Use tempdir instead of working directory as build-context 2017-06-12 20:14:48 +02:00
docker_cli_version_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_volume_test.go Spelling fixes 2017-07-03 13:13:09 -07: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 Remove string checking in API error handling 2017-08-15 16:01:11 -04: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 Spelling fixes 2017-07-03 13:13:09 -07: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 Allow stopping of paused container 2017-07-12 10:35:48 -04:00
events_utils_test.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
fixtures_linux_daemon_test.go Protect images in the integration/ suite 2017-08-09 11:02:57 -04:00
requirements_test.go Windows: Add named pipe mount support 2017-08-07 11:34:36 -07: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 Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
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 Testing: Use local plugins, not from hub 2017-07-14 13:24:14 -04:00
utils_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00