|
|
@@ -143,31 +143,31 @@ func TestStartStopWithOneOffs(t *testing.T) {
|
|
|
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "ps", "-a")
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-foo-1"), res.Combined())
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-1"), res.Combined())
|
|
|
- assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs_bar_run"), res.Combined())
|
|
|
+ assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-run"), res.Combined())
|
|
|
})
|
|
|
|
|
|
t.Run("stop (not one-off containers)", func(t *testing.T) {
|
|
|
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "stop")
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-foo-1"), res.Combined())
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-1"), res.Combined())
|
|
|
- assert.Assert(t, !strings.Contains(res.Combined(), "e2e_start_stop_with_oneoffs_bar_run"), res.Combined())
|
|
|
+ assert.Assert(t, !strings.Contains(res.Combined(), "e2e_start_stop_with_oneoffs-bar-run"), res.Combined())
|
|
|
|
|
|
res = c.RunDockerComposeCmd(t, "--project-name", projectName, "ps", "-a", "--status", "running")
|
|
|
- assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs_bar_run"), res.Combined())
|
|
|
+ assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-run"), res.Combined())
|
|
|
})
|
|
|
|
|
|
t.Run("start (not one-off containers)", func(t *testing.T) {
|
|
|
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "start")
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-foo-1"), res.Combined())
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-1"), res.Combined())
|
|
|
- assert.Assert(t, !strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs_bar_run"), res.Combined())
|
|
|
+ assert.Assert(t, !strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-run"), res.Combined())
|
|
|
})
|
|
|
|
|
|
t.Run("restart (not one-off containers)", func(t *testing.T) {
|
|
|
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "restart")
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-foo-1"), res.Combined())
|
|
|
assert.Assert(t, strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-1"), res.Combined())
|
|
|
- assert.Assert(t, !strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs_bar_run"), res.Combined())
|
|
|
+ assert.Assert(t, !strings.Contains(res.Combined(), "e2e-start-stop-with-oneoffs-bar-run"), res.Combined())
|
|
|
})
|
|
|
|
|
|
t.Run("down", func(t *testing.T) {
|