MCPcopy Create free account
hub / github.com/compose-spec/compose-go / TestValidateRollbackConfigWithOrder

Function TestValidateRollbackConfigWithOrder

schema/schema_test.go:174–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

172}
173
174func TestValidateRollbackConfigWithOrder(t *testing.T) {
175 config := map[string]any{
176 "services": map[string]any{
177 "foo": map[string]any{
178 "image": "busybox",
179 "deploy": map[string]any{
180 "rollback_config": map[string]any{
181 "parallelism": 1,
182 "order": "start-first",
183 },
184 },
185 },
186 },
187 }
188
189 assert.NilError(t, Validate(config))
190 assert.NilError(t, Validate(config))
191}
192
193func TestValidateRollbackConfigWithUpdateConfig(t *testing.T) {
194 config := map[string]any{

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…