DockerCLI/e2e
Ian Campbell 891b3d953e cli-plugins: use `docker system dial-stdio` to call the daemon
This means that plugins can use whatever methods the monolithic CLI supports,
which is good for consistency.

This relies on `os.Args[0]` being something which can be executed again to
reach the same binary, since it is propagated (via an envvar) to the plugin for
this purpose. This essentially requires that the current working directory and
path are not modified by the monolithic CLI before it launches the plugin nor
by the plugin before it initializes the client. This should be the case.

Previously the fake apiclient used by `TestExperimentalCLI` was not being used,
since `cli.Initialize` was unconditionally overwriting it with a real one
(talking to a real daemon during unit testing, it seems). This wasn't expected
nor desirable and no longer happens with the new arrangements, exposing the
fact that no `pingFunc` is provided, leading to a panic. Add a `pingFunc` to
the fake client to avoid this.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-02-18 11:53:37 +00:00
..
cli-plugins cli-plugins: use `docker system dial-stdio` to call the daemon 2019-02-18 11:53:37 +00:00
container Add missing test 2018-11-26 14:02:16 +00:00
image Add option to pull images quietly 2018-12-19 13:48:41 +01:00
internal/fixtures Add missing test 2018-11-26 14:02:16 +00:00
plugin Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
stack Fix some typo 2018-09-07 17:18:00 +08:00
system Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
testdata Add missing test 2018-11-26 14:02:16 +00:00
trust Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
compose-env.connhelper-ssh.yaml connhelper: add e2e 2018-09-30 10:24:34 +09:00
compose-env.experimental.yaml Make test-e2e run against experimental and non-experimental daemon 2018-06-25 11:46:35 +02:00
compose-env.yaml Add missing test 2018-11-26 14:02:16 +00:00