mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
fix: bring up services with deps with --no-deps
Don't fail on not finding dependent services because they were put in the disabled slice. Fixes #9427. Signed-off-by: Nick Sieger <nick@nicksieger.com>
This commit is contained in:
parent
5b6b674da9
commit
cacff89cef
2 changed files with 11 additions and 1 deletions
|
|
@ -131,6 +131,12 @@ func TestStartStopWithDependencies(t *testing.T) {
|
|||
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-dependencies-foo-1"), res.Combined())
|
||||
})
|
||||
|
||||
t.Run("Up no-deps", func(t *testing.T) {
|
||||
_ = c.RunDockerComposeCmd("--project-name", projectName, "down")
|
||||
res := c.RunDockerComposeCmd("-f", "./fixtures/dependencies/compose.yaml", "--project-name", projectName, "up", "--no-deps", "-d", "foo")
|
||||
assert.Assert(t, strings.Contains(res.Combined(), "Container e2e-start-stop-with-dependencies-foo-1 Started"), res.Combined())
|
||||
})
|
||||
|
||||
t.Run("down", func(t *testing.T) {
|
||||
_ = c.RunDockerComposeCmd("--project-name", projectName, "down")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue