(t *testing.T)
| 232 | } |
| 233 | |
| 234 | func 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 |
| 244 | services: |
| 245 | nginx: |
| 246 | build: |
| 247 | context: %s |
| 248 | dockerfile: Dockerfile |
| 249 | networks: |
| 250 | default: null |
| 251 | networks: |
| 252 | default: |
| 253 | name: compose-e2e-config_default |
| 254 | `, projectName, filepath.Join(wd, "fixtures", "simple-build-test", "nginx-build")), ExitCode: 0}) |
| 255 | }) |
| 256 | } |
| 257 | |
| 258 | func TestConfigInterpolate(t *testing.T) { |
| 259 | const projectName = "compose-e2e-config-interpolate" |
nothing calls this directly
no test coverage detected