mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
Merge pull request #11537 from glours/fix-flakyness-run-quiet-pull
use a dedicated compose file for --quiet-pull e2e test
This commit is contained in:
commit
9d38ee1726
@ -162,10 +162,10 @@ func TestLocalComposeRun(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("--quiet-pull", func(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.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(), "Pull complete"), res.Combined())
|
||||||
assert.Assert(t, strings.Contains(res.Combined(), "Pulled"), res.Combined())
|
assert.Assert(t, strings.Contains(res.Combined(), "Pulled"), res.Combined())
|
||||||
})
|
})
|
||||||
|
3
pkg/e2e/fixtures/run-test/quiet-pull.yaml
Normal file
3
pkg/e2e/fixtures/run-test/quiet-pull.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
services:
|
||||||
|
backend:
|
||||||
|
image: hello-world
|
Loading…
x
Reference in New Issue
Block a user