MCPcopy Create free account
hub / github.com/docker/cli / TestConvertUpdateConfigOrder

Function TestConvertUpdateConfigOrder

cli/compose/convert/service_test.go:444–460  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

442}
443
444func 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
462func TestConvertFileObject(t *testing.T) {
463 namespace := NewNamespace("testing")

Callers

nothing calls this directly

Calls 1

convertUpdateConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…