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

Function TestValidateRollbackConfig

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

Source from the content-addressed store, hash-verified

309}
310
311func TestValidateRollbackConfig(t *testing.T) {
312 config := dict{
313 "version": "3.4",
314 "services": dict{
315 "foo": dict{
316 "image": "busybox",
317 "deploy": dict{
318 "rollback_config": dict{
319 "parallelism": 1,
320 },
321 },
322 },
323 },
324 }
325
326 assert.NilError(t, Validate(config, "3.7"))
327}
328
329func TestValidateRollbackConfigWithOrder(t *testing.T) {
330 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…