Răsfoiți Sursa

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

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 4 ani în urmă
părinte
comite
0785114b90
1 a modificat fișierele cu 11 adăugiri și 0 ștergeri
  1. 11 0
      local/e2e/compose/compose_test.go

+ 11 - 0
local/e2e/compose/compose_test.go

@@ -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)