(t *testing.T)
| 274 | type array []any |
| 275 | |
| 276 | func TestValidatePlacement(t *testing.T) { |
| 277 | config := dict{ |
| 278 | "version": "3.3", |
| 279 | "services": dict{ |
| 280 | "foo": dict{ |
| 281 | "image": "busybox", |
| 282 | "deploy": dict{ |
| 283 | "placement": dict{ |
| 284 | "preferences": array{ |
| 285 | dict{ |
| 286 | "spread": "node.labels.az", |
| 287 | }, |
| 288 | }, |
| 289 | }, |
| 290 | }, |
| 291 | }, |
| 292 | }, |
| 293 | } |
| 294 | |
| 295 | assert.NilError(t, Validate(config, "3.3")) |
| 296 | } |
| 297 | |
| 298 | func TestValidateIsolation(t *testing.T) { |
| 299 | config := dict{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…