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
Yong Tang b194252d80 Fix failure in docker ps --format when .Label has args
This fix tries to fix the issue in 30279 where  `docker ps --format`
fails if `.Label` has args. For example:
```
docker ps --format '{{.ID}}\t{{.Names}}\t{{.Label "some.label"}}'
```

The reason for the failure is that during the preprocessing phase
to detect the existance of `.Size`, the `listOptionsProcessor`
does not has a method of `Label(name string) string`.

This results in the failure of
```
template: :1:24: executing "" at <.Label>: Label is not a method but has arguments
```

This fix fixes the issue by adding needed method of `Label(name string) string`.

This fix fixes 30279.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit 2cd4ba1e56)
Signed-off-by: Victor Vieux <vieux@docker.com>
2017-01-24 17:45:05 -08:00
..
fixtures Add integration test for stack deploy. 2016-11-10 11:28:18 -05:00
benchmark_test.go
check_test.go integration-cli: Add integration tests for swarm services + content trust 2016-12-15 20:44:22 -08:00
daemon.go plugins: container-rootfs-relative paths 2016-12-09 14:16:04 -08:00
daemon_swarm.go Add integration test for volume plugins on swarm 2016-12-16 10:44:26 -08:00
daemon_swarm_hack.go
daemon_unix.go
daemon_windows.go Swap usage of LazyDLL and LoadDLL to LazySystemDLL. 2016-11-22 18:40:35 -08:00
docker_api_attach_test.go
docker_api_auth_test.go
docker_api_build_test.go
docker_api_containers_test.go Fix restartpolicy max-retry validation 2016-12-02 13:40:40 -08:00
docker_api_create_test.go Fix /proc/<pid>/oom_score_adj: invalid argument error caused by empty env name 2016-11-07 08:15:26 -08:00
docker_api_events_test.go
docker_api_exec_resize_test.go [nit] integration-cli: obey Go's naming convention 2016-09-30 01:21:05 +00:00
docker_api_exec_test.go add headers when using exec 2016-12-09 14:12:09 -08:00
docker_api_images_test.go Add test for image size for v1.12 and v1.13 clients against v1.13 daemon 2017-01-11 17:59:31 -08:00
docker_api_info_test.go
docker_api_inspect_test.go
docker_api_inspect_unix_test.go
docker_api_logs_test.go
docker_api_network_test.go
docker_api_resize_test.go
docker_api_service_update_test.go
docker_api_stats_test.go Rename Remote API to Engine API 2016-11-22 16:49:58 -08:00
docker_api_stats_unix_test.go
docker_api_swarm_test.go secrets: add secret create and delete integration tests 2016-11-09 14:27:44 -05:00
docker_api_test.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
docker_api_update_unix_test.go
docker_api_version_test.go
docker_api_volumes_test.go
docker_cli_attach_test.go
docker_cli_attach_unix_test.go
docker_cli_authz_plugin_v2_test.go Set plugins used in tests back to original names 2017-01-09 06:37:40 -08:00
docker_cli_authz_unix_test.go
docker_cli_build_test.go Merge pull request #29962 from vieux/1.13.0-rc6-cherrypicks 2017-01-10 10:09:04 +01:00
docker_cli_build_unix_test.go
docker_cli_by_digest_test.go Update pull error handling 2016-11-10 17:34:12 -08:00
docker_cli_commit_test.go commit: do not change container labels on commit 2017-01-04 12:42:42 +01:00
docker_cli_config_test.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
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.go Use checker assert for integration-cli/docker_cli_cp_* four files. 2015-10-26 10:22:28 +08:00
docker_cli_create_test.go
docker_cli_daemon_plugins_test.go Moves graphdriver plugn docs out of experimental 2017-01-03 21:58:43 -05:00
docker_cli_daemon_test.go Follow up #29365, fix fail to remove container after restart 2017-01-05 20:27:34 -05:00
docker_cli_diff_test.go
docker_cli_events_test.go [integration-cli] skip plugin tests on non-x86 2016-12-12 20:56:38 -08:00
docker_cli_events_unix_test.go support insecure registry in configuration reload 2016-10-20 07:54:31 +08:00
docker_cli_exec_test.go
docker_cli_exec_unix_test.go
docker_cli_experimental_test.go
docker_cli_export_import_test.go
docker_cli_external_graphdriver_unix_test.go Fix race/deadlock in v1 plugin handlers 2017-01-04 12:44:55 +01:00
docker_cli_external_volume_driver_unix_test.go Fix volume Create to check against canonical driver name 2016-12-16 10:44:26 -08:00
docker_cli_health_test.go
docker_cli_help_test.go fix a few golint errors 2016-11-19 23:50:06 -08:00
docker_cli_history_test.go
docker_cli_images_test.go
docker_cli_import_test.go
docker_cli_info_test.go Add expected 3rd party binaries commit ids to info 2016-11-09 07:42:44 -08:00
docker_cli_info_unix_test.go daemon: add a flag to override the default seccomp profile 2016-11-02 21:41:29 +01:00
docker_cli_inspect_test.go Fix inspect object by invalid reference 2017-01-04 12:42:40 +01:00
docker_cli_kill_test.go Add restart policy to restart policy tests 2016-11-09 17:13:42 -06:00
docker_cli_links_test.go
docker_cli_links_unix_test.go
docker_cli_login_test.go
docker_cli_logout_test.go
docker_cli_logs_bench_test.go
docker_cli_logs_test.go Change reading order of tailfile 2016-11-14 11:58:01 -08:00
docker_cli_nat_test.go
docker_cli_netmode_test.go
docker_cli_network_unix_test.go Set plugins used in tests back to original names 2017-01-09 06:37:40 -08:00
docker_cli_oom_killed_test.go
docker_cli_pause_test.go
docker_cli_plugins_test.go Set plugins used in tests back to original names 2017-01-09 06:37:40 -08:00
docker_cli_port_test.go Expose bridge IPv6 setting to docker network inspect 2016-02-11 22:13:47 +00:00
docker_cli_proxy_test.go
docker_cli_prune_unix_test.go Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
docker_cli_ps_test.go Fix failure in docker ps --format when .Label has args 2017-01-24 17:45:05 -08:00
docker_cli_pull_local_test.go
docker_cli_pull_test.go Add class to repository scope 2016-12-09 14:10:29 -08:00
docker_cli_pull_trusted_test.go
docker_cli_push_test.go
docker_cli_registry_user_agent_test.go modify func namt from TestUserAgentPassThroughOnPull to TestUserAgentPassThrough 2016-08-08 11:40:20 +08:00
docker_cli_rename_test.go Support plugins in docker inspect 2016-12-05 00:39:30 -08:00
docker_cli_restart_test.go Fix restartpolicy max-retry validation 2016-12-02 13:40:40 -08:00
docker_cli_rm_test.go
docker_cli_rmi_test.go
docker_cli_run_test.go xFix issue for --hostname when running in "--net=host" 2016-12-09 14:42:16 -08:00
docker_cli_run_unix_test.go Fixes some integration-cli on userns 2016-11-23 12:27:16 -08:00
docker_cli_save_load_test.go
docker_cli_save_load_unix_test.go
docker_cli_search_test.go
docker_cli_secret_create_test.go remove -f on secret create and unify usage with other commands 2017-01-09 06:37:40 -08:00
docker_cli_secret_inspect_test.go update secret inspect to support IDs 2016-11-22 18:43:53 -08:00
docker_cli_service_create_test.go Fix issue where TmpfsOptions are not sent to swarm 2016-12-02 13:43:02 -08:00
docker_cli_service_health_test.go
docker_cli_service_logs_experimental_test.go improve TestServiceLogs for the goroutine issue #28915 2016-12-07 16:10:56 -08:00
docker_cli_service_scale_test.go
docker_cli_service_update_test.go do not force target type for secret references 2016-11-21 14:45:39 -08:00
docker_cli_sni_test.go
docker_cli_stack_test.go Restore stack deploy integration test with dab 2016-11-10 11:28:19 -05:00
docker_cli_start_test.go
docker_cli_stats_test.go
docker_cli_stop_test.go
docker_cli_swarm_test.go Modify network plugin test for swarm-mode 2017-01-10 16:38:24 -08:00
docker_cli_swarm_unix_test.go Add integration test for volume plugins on swarm 2016-12-16 10:44:26 -08:00
docker_cli_tag_test.go
docker_cli_top_test.go
docker_cli_update_test.go
docker_cli_update_unix_test.go Fix update clear the restart policy of monitor 2017-01-04 12:44:55 +01:00
docker_cli_userns_test.go
docker_cli_v2_only_test.go
docker_cli_version_test.go Align output of docker version again 2016-11-29 14:07:39 -08:00
docker_cli_volume_test.go Fix volume Create to check against canonical driver name 2016-12-16 10:44:26 -08:00
docker_cli_wait_test.go
docker_deprecated_api_v124_test.go
docker_deprecated_api_v124_unix_test.go
docker_experimental_network_test.go
docker_hub_pull_suite_test.go
docker_test_vars.go Moves graphdriver plugn docs out of experimental 2017-01-03 21:58:43 -05:00
docker_utils.go Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
events_utils.go
fixtures.go
fixtures_linux_daemon.go Use runc version built without ambient capabilities 2016-11-04 17:25:28 +00:00
npipe.go
npipe_windows.go
registry.go
registry_mock.go
requirements.go Windows: Add cpu count option 2016-11-04 13:38:50 -07:00
requirements_unix.go Moves graphdriver plugn docs out of experimental 2017-01-03 21:58:43 -05:00
test_vars.go
test_vars_exec.go
test_vars_noexec.go
test_vars_noseccomp.go
test_vars_seccomp.go
test_vars_unix.go
test_vars_windows.go
trust_server.go Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
utils.go