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

Function TestValidateRollbackConfigWithUpdateConfig

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

Source from the content-addressed store, hash-verified

191}
192
193func TestValidateRollbackConfigWithUpdateConfig(t *testing.T) {
194 config := map[string]any{
195 "services": map[string]any{
196 "foo": map[string]any{
197 "image": "busybox",
198 "deploy": map[string]any{
199 "update_config": map[string]any{
200 "parallelism": 1,
201 "order": "start-first",
202 },
203 "rollback_config": map[string]any{
204 "parallelism": 1,
205 "order": "start-first",
206 },
207 },
208 },
209 },
210 }
211
212 assert.NilError(t, Validate(config))
213 assert.NilError(t, Validate(config))
214}
215
216func TestValidateRollbackConfigWithUpdateConfigFull(t *testing.T) {
217 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…