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

Function TestExport

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

Source from the content-addressed store, hash-verified

21)
22
23func TestExport(t *testing.T) {
24 const projectName = "e2e-export-service"
25 c := NewParallelCLI(t)
26
27 cleanup := func() {
28 c.RunDockerComposeCmd(t, "--project-name", projectName, "down", "--timeout=0", "--remove-orphans")
29 }
30 t.Cleanup(cleanup)
31 cleanup()
32
33 c.RunDockerComposeCmd(t, "-f", "./fixtures/export/compose.yaml", "--project-name", projectName, "up", "-d", "service")
34 c.RunDockerComposeCmd(t, "--project-name", projectName, "export", "-o", "service.tar", "service")
35}
36
37func TestExportWithReplicas(t *testing.T) {
38 const projectName = "e2e-export-service-with-replicas"

Callers

nothing calls this directly

Calls 2

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected