Also ensure we don’t need compose cloud integration to run compose CLI plugin

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2021-04-22 22:03:52 +02:00
parent db38d1244c
commit 0785114b90
1 changed files with 11 additions and 0 deletions

View File

@ -141,6 +141,17 @@ func TestComposeUsingCliPlugin(t *testing.T) {
res.Assert(t, icmd.Expected{Err: "'compose' is not a docker command", ExitCode: 1})
}
func TestComposeCliPluginWithoutCloudIntegration(t *testing.T) {
c := NewParallelE2eCLI(t, binDir)
err := os.Remove(filepath.Join(binDir, "docker"))
assert.NilError(t, err)
err = os.Rename(filepath.Join(binDir, "com.docker.cli"), filepath.Join(binDir, "docker"))
assert.NilError(t, err)
res := c.RunDockerOrExitError("compose", "ls")
res.Assert(t, icmd.Expected{Out: "NAME STATUS", ExitCode: 0})
}
func TestComposePull(t *testing.T) {
c := NewParallelE2eCLI(t, binDir)