(t *testing.T)
| 154 | } |
| 155 | |
| 156 | func 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 | |
| 174 | func TestValidateRollbackConfigWithOrder(t *testing.T) { |
| 175 | config := map[string]any{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…