MCPcopy Create free account
hub / github.com/docker/compose / TestExportWithReplicas

Function TestExportWithReplicas

pkg/e2e/export_test.go:37–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func 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}

Callers

nothing calls this directly

Calls 2

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected