Commit fc18a00
committed
refactor(controller): default existingObjects in cluster tests to reduce boilerplate
- pkg/cluster-handler/controller/multigrescluster/multigrescluster_controller_test.go:
- Update test runners to default `existingObjects` to the standard set of templates (`coreTpl`, `cellTpl`, `shardTpl`) if the field is `nil`.
- Remove explicit `existingObjects` definitions from test cases where the default set is sufficient (e.g., `Create: MultiOrch Placement Defaulting`), significantly reducing test table clutter.1 parent abf2a39 commit fc18a00
File tree
1 file changed
+1
-17
lines changed- pkg/cluster-handler/controller/multigrescluster
1 file changed
+1
-17
lines changedLines changed: 1 addition & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | 449 | | |
466 | 450 | | |
467 | 451 | | |
| |||
0 commit comments