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

Function TestExposeRange

pkg/e2e/expose_test.go:30–48  ·  view source on GitHub ↗

see https://github.com/docker/compose/issues/13378

(t *testing.T)

Source from the content-addressed store, hash-verified

28
29// see https://github.com/docker/compose/issues/13378
30func TestExposeRange(t *testing.T) {
31 c := NewParallelCLI(t)
32
33 f := filepath.Join(t.TempDir(), "compose.yaml")
34 err := os.WriteFile(f, []byte(`
35name: test-expose-range
36services:
37 test:
38 image: alpine
39 expose:
40 - "9091-9092"
41`), 0o644)
42 assert.NilError(t, err)
43
44 t.Cleanup(func() {
45 c.cleanupWithDown(t, "test-expose-range")
46 })
47 c.RunDockerComposeCmd(t, "-f", f, "up")
48}

Callers

nothing calls this directly

Calls 5

NewParallelCLIFunction · 0.85
TempDirMethod · 0.80
WriteFileMethod · 0.80
cleanupWithDownMethod · 0.80
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected