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

Function TestBuildDependentImage

pkg/e2e/build_test.go:554–568  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

552}
553
554func TestBuildDependentImage(t *testing.T) {
555 c := NewParallelCLI(t)
556
557 t.Cleanup(func() {
558 c.RunDockerComposeCmd(t, "-f", "fixtures/build-test/dependencies/compose.yaml", "down", "--rmi=local")
559 })
560
561 res := c.RunDockerComposeCmd(t, "-f", "fixtures/build-test/dependencies/compose.yaml", "build", "firstbuild")
562 out := res.Combined()
563 assert.Check(t, strings.Contains(out, "firstbuild Built"))
564
565 res = c.RunDockerComposeCmd(t, "-f", "fixtures/build-test/dependencies/compose.yaml", "build", "secondbuild")
566 out = res.Combined()
567 assert.Check(t, strings.Contains(out, "secondbuild Built"))
568}
569
570func TestBuildSubDependencies(t *testing.T) {
571 c := NewParallelCLI(t)

Callers

nothing calls this directly

Calls 2

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected