(t *testing.T)
| 423 | } |
| 424 | |
| 425 | func TestV1Unsupported(t *testing.T) { |
| 426 | _, err := loadYAML(` |
| 427 | foo: |
| 428 | image: busybox |
| 429 | `) |
| 430 | assert.Check(t, is.ErrorContains(err, "(root) Additional property foo is not allowed")) |
| 431 | |
| 432 | _, err = loadYAML(` |
| 433 | version: "1.0" |
| 434 | foo: |
| 435 | image: busybox |
| 436 | `) |
| 437 | |
| 438 | assert.Check(t, is.ErrorContains(err, "unsupported Compose file version: 1.0")) |
| 439 | } |
| 440 | |
| 441 | func TestNonMappingObject(t *testing.T) { |
| 442 | _, err := loadYAML(` |
nothing calls this directly
no test coverage detected
searching dependent graphs…