Skip to content

Commit 28c0fbf

Browse files
committed
e2e: reproduce bug with links
Signed-off-by: Nick Sieger <[email protected]>
1 parent cacff89 commit 28c0fbf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pkg/e2e/fixtures/links/compose.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
foo:
3+
image: nginx:alpine
4+
links:
5+
- bar
6+
7+
bar:
8+
image: nginx:alpine

pkg/e2e/start_stop_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ func TestStartStopWithDependencies(t *testing.T) {
131131
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-dependencies-foo-1"), res.Combined())
132132
})
133133

134-
t.Run("Up no-deps", func(t *testing.T) {
134+
t.Run("Up no-deps links", func(t *testing.T) {
135135
_ = c.RunDockerComposeCmd("--project-name", projectName, "down")
136-
res := c.RunDockerComposeCmd("-f", "./fixtures/dependencies/compose.yaml", "--project-name", projectName, "up", "--no-deps", "-d", "foo")
136+
res := c.RunDockerComposeCmd("-f", "./fixtures/links/compose.yaml", "--project-name", projectName, "up", "--no-deps", "-d", "foo")
137137
assert.Assert(t, strings.Contains(res.Combined(), "Container e2e-start-stop-with-dependencies-foo-1 Started"), res.Combined())
138+
assert.Assert(t, !strings.Contains(res.Combined(), "Container e2e-start-stop-with-dependencies-bar-1 Started"), res.Combined())
138139
})
139140

140141
t.Run("down", func(t *testing.T) {

0 commit comments

Comments
 (0)