From 697a48af32993a706d137fe572c5b5f3af84ed4b Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:08:53 +0100 Subject: [PATCH] use an dedicated compose file --quiet-pull e2e test Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/e2e/compose_run_test.go | 4 ++-- pkg/e2e/fixtures/run-test/quiet-pull.yaml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 pkg/e2e/fixtures/run-test/quiet-pull.yaml diff --git a/pkg/e2e/compose_run_test.go b/pkg/e2e/compose_run_test.go index e552e4653..ceec152a8 100644 --- a/pkg/e2e/compose_run_test.go +++ b/pkg/e2e/compose_run_test.go @@ -162,10 +162,10 @@ func TestLocalComposeRun(t *testing.T) { }) t.Run("--quiet-pull", func(t *testing.T) { - res := c.RunDockerComposeCmd(t, "-f", "./fixtures/run-test/compose.yaml", "down", "--rmi", "all") + res := c.RunDockerComposeCmd(t, "-f", "./fixtures/run-test/quiet-pull.yaml", "down", "--rmi", "all") res.Assert(t, icmd.Success) - res = c.RunDockerComposeCmd(t, "-f", "./fixtures/run-test/compose.yaml", "run", "--quiet-pull", "back") + res = c.RunDockerComposeCmd(t, "-f", "./fixtures/run-test/quiet-pull.yaml", "run", "--quiet-pull", "backend") assert.Assert(t, !strings.Contains(res.Combined(), "Pull complete"), res.Combined()) assert.Assert(t, strings.Contains(res.Combined(), "Pulled"), res.Combined()) }) diff --git a/pkg/e2e/fixtures/run-test/quiet-pull.yaml b/pkg/e2e/fixtures/run-test/quiet-pull.yaml new file mode 100644 index 000000000..922676363 --- /dev/null +++ b/pkg/e2e/fixtures/run-test/quiet-pull.yaml @@ -0,0 +1,3 @@ +services: + backend: + image: hello-world \ No newline at end of file