MCPcopy
hub / github.com/docker/compose / TestScaleDoesntRecreate

Function TestScaleDoesntRecreate

pkg/e2e/up_test.go:143–154  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

141}
142
143func TestScaleDoesntRecreate(t *testing.T) {
144 c := NewCLI(t)
145 const projectName = "compose-e2e-scale"
146 t.Cleanup(func() {
147 c.RunDockerComposeCmd(t, "--project-name", projectName, "down")
148 })
149
150 c.RunDockerComposeCmd(t, "-f", "fixtures/simple-composefile/compose.yaml", "--project-name", projectName, "up", "-d")
151
152 res := c.RunDockerComposeCmd(t, "-f", "fixtures/simple-composefile/compose.yaml", "--project-name", projectName, "up", "--scale", "simple=2", "-d")
153 assert.Check(t, !strings.Contains(res.Combined(), "Recreated"))
154}
155
156func TestUpWithDependencyNotRequired(t *testing.T) {
157 c := NewCLI(t)

Callers

nothing calls this directly

Calls 2

RunDockerComposeCmdMethod · 0.95
NewCLIFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…