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

Function TestValidateRollbackConfig

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

Source from the content-addressed store, hash-verified

154}
155
156func TestValidateRollbackConfig(t *testing.T) {
157 config := map[string]any{
158 "services": map[string]any{
159 "foo": map[string]any{
160 "image": "busybox",
161 "deploy": map[string]any{
162 "rollback_config": map[string]any{
163 "parallelism": 1,
164 },
165 },
166 },
167 },
168 }
169
170 assert.NilError(t, Validate(config))
171 assert.NilError(t, Validate(config))
172}
173
174func TestValidateRollbackConfigWithOrder(t *testing.T) {
175 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…