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

Function TestValidateRollbackConfigWithOrder

cli/compose/schema/schema_test.go:329–346  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

327}
328
329func TestValidateRollbackConfigWithOrder(t *testing.T) {
330 config := dict{
331 "version": "3.4",
332 "services": dict{
333 "foo": dict{
334 "image": "busybox",
335 "deploy": dict{
336 "rollback_config": dict{
337 "parallelism": 1,
338 "order": "start-first",
339 },
340 },
341 },
342 },
343 }
344
345 assert.NilError(t, Validate(config, "3.7"))
346}
347
348func TestValidateRollbackConfigWithUpdateConfig(t *testing.T) {
349 config := dict{

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…