Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 0785114

Browse files
committed
Also ensure we don’t need compose cloud integration to run compose CLI plugin
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent db38d12 commit 0785114

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

local/e2e/compose/compose_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ func TestComposeUsingCliPlugin(t *testing.T) {
141141
res.Assert(t, icmd.Expected{Err: "'compose' is not a docker command", ExitCode: 1})
142142
}
143143

144+
func TestComposeCliPluginWithoutCloudIntegration(t *testing.T) {
145+
c := NewParallelE2eCLI(t, binDir)
146+
147+
err := os.Remove(filepath.Join(binDir, "docker"))
148+
assert.NilError(t, err)
149+
err = os.Rename(filepath.Join(binDir, "com.docker.cli"), filepath.Join(binDir, "docker"))
150+
assert.NilError(t, err)
151+
res := c.RunDockerOrExitError("compose", "ls")
152+
res.Assert(t, icmd.Expected{Out: "NAME STATUS", ExitCode: 0})
153+
}
154+
144155
func TestComposePull(t *testing.T) {
145156
c := NewParallelE2eCLI(t, binDir)
146157

0 commit comments

Comments
 (0)