(t *testing.T)
| 107 | } |
| 108 | |
| 109 | func TestUpWithBuildDependencies(t *testing.T) { |
| 110 | c := NewParallelCLI(t) |
| 111 | |
| 112 | t.Run("up with service using image build by an another service", func(t *testing.T) { |
| 113 | // ensure local test run does not reuse previously build image |
| 114 | c.RunDockerOrExitError(t, "rmi", "built-image-dependency") |
| 115 | |
| 116 | res := c.RunDockerComposeCmd(t, "--project-directory", "fixtures/dependencies", |
| 117 | "-f", "fixtures/dependencies/service-image-depends-on.yaml", "up", "-d") |
| 118 | |
| 119 | t.Cleanup(func() { |
| 120 | c.RunDockerComposeCmd(t, "--project-directory", "fixtures/dependencies", |
| 121 | "-f", "fixtures/dependencies/service-image-depends-on.yaml", "down", "--rmi", "all") |
| 122 | }) |
| 123 | |
| 124 | res.Assert(t, icmd.Success) |
| 125 | }) |
| 126 | } |
| 127 | |
| 128 | func TestUpWithDependencyExit(t *testing.T) { |
| 129 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected