(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func TestExportWithReplicas(t *testing.T) { |
| 38 | const projectName = "e2e-export-service-with-replicas" |
| 39 | c := NewParallelCLI(t) |
| 40 | |
| 41 | cleanup := func() { |
| 42 | c.RunDockerComposeCmd(t, "--project-name", projectName, "down", "--timeout=0", "--remove-orphans") |
| 43 | } |
| 44 | t.Cleanup(cleanup) |
| 45 | cleanup() |
| 46 | |
| 47 | c.RunDockerComposeCmd(t, "-f", "./fixtures/export/compose.yaml", "--project-name", projectName, "up", "-d", "service-with-replicas") |
| 48 | c.RunDockerComposeCmd(t, "--project-name", projectName, "export", "-o", "r1.tar", "--index=1", "service-with-replicas") |
| 49 | c.RunDockerComposeCmd(t, "--project-name", projectName, "export", "-o", "r2.tar", "--index=2", "service-with-replicas") |
| 50 | } |
nothing calls this directly
no test coverage detected