MCPcopy
hub / github.com/docker/compose / TestComposeFileSetByDotEnv

Function TestComposeFileSetByDotEnv

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

Source from the content-addressed store, hash-verified

315}
316
317func TestComposeFileSetByDotEnv(t *testing.T) {
318 c := NewCLI(t)
319 defer c.cleanupWithDown(t, "dotenv")
320
321 cmd := c.NewDockerComposeCmd(t, "config")
322 cmd.Dir = filepath.Join(".", "fixtures", "dotenv")
323 res := icmd.RunCmd(cmd)
324 res.Assert(t, icmd.Expected{
325 ExitCode: 0,
326 Out: "image: test:latest",
327 })
328 res.Assert(t, icmd.Expected{
329 Out: "image: enabled:profile",
330 })
331}
332
333func TestComposeFileSetByProjectDirectory(t *testing.T) {
334 c := NewCLI(t)

Callers

nothing calls this directly

Calls 4

cleanupWithDownMethod · 0.95
NewDockerComposeCmdMethod · 0.95
NewCLIFunction · 0.85
RunCmdMethod · 0.80

Tested by

no test coverage detected