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

Function TestConfig

pkg/e2e/compose_test.go:234–256  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

232}
233
234func TestConfig(t *testing.T) {
235 const projectName = "compose-e2e-config"
236 c := NewParallelCLI(t)
237
238 wd, err := os.Getwd()
239 assert.NilError(t, err)
240
241 t.Run("up", func(t *testing.T) {
242 res := c.RunDockerComposeCmd(t, "-f", "./fixtures/simple-build-test/compose.yaml", "-p", projectName, "config")
243 res.Assert(t, icmd.Expected{Out: fmt.Sprintf(`name: %s
244services:
245 nginx:
246 build:
247 context: %s
248 dockerfile: Dockerfile
249 networks:
250 default: null
251networks:
252 default:
253 name: compose-e2e-config_default
254`, projectName, filepath.Join(wd, "fixtures", "simple-build-test", "nginx-build")), ExitCode: 0})
255 })
256}
257
258func TestConfigInterpolate(t *testing.T) {
259 const projectName = "compose-e2e-config-interpolate"

Callers

nothing calls this directly

Calls 2

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected