(t *testing.T)
| 442 | } |
| 443 | |
| 444 | func TestConvertUpdateConfigOrder(t *testing.T) { |
| 445 | // test default behavior |
| 446 | updateConfig := convertUpdateConfig(&composetypes.UpdateConfig{}) |
| 447 | assert.Check(t, is.Equal("", string(updateConfig.Order))) |
| 448 | |
| 449 | // test start-first |
| 450 | updateConfig = convertUpdateConfig(&composetypes.UpdateConfig{ |
| 451 | Order: "start-first", |
| 452 | }) |
| 453 | assert.Check(t, is.Equal(string(updateConfig.Order), "start-first")) |
| 454 | |
| 455 | // test stop-first |
| 456 | updateConfig = convertUpdateConfig(&composetypes.UpdateConfig{ |
| 457 | Order: "stop-first", |
| 458 | }) |
| 459 | assert.Check(t, is.Equal(string(updateConfig.Order), "stop-first")) |
| 460 | } |
| 461 | |
| 462 | func TestConvertFileObject(t *testing.T) { |
| 463 | namespace := NewNamespace("testing") |
nothing calls this directly
no test coverage detected
searching dependent graphs…