(t *testing.T)
| 191 | } |
| 192 | |
| 193 | func 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 | |
| 216 | func TestValidateRollbackConfigWithUpdateConfigFull(t *testing.T) { |
| 217 | config := map[string]any{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…