Commit 1bfb595
committed
Fix test cleanup for TTL feature and regenerate API docs
This commit fixes two CI failures:
1. Test failures - TTL tests were not properly cleaning up BMCSecrets
- BMCUsers create secrets with owner references
- envtest has no garbage collector, so secrets persist after user deletion
- Added proper cleanup using owner reference matching (like existing rotation test)
- All 4 new TTL tests now pass cleanly
2. Code generation check failure - API docs were stale
- Regenerated docs/api-reference/api.md to include TTL/ExpiresAt fields
- Docs now include spec.ttl, spec.expiresAt, status.expiresAt, status.conditions
Test results:
- All 9 BMCUser tests pass (5 existing + 4 new TTL tests)
- AfterEach cleanup validates no leaked resources
Signed-off-by: Stefan Hipfel <stefan.hipfel@sap.com>1 parent 643dcf9 commit 1bfb595
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
717 | 719 | | |
718 | 720 | | |
719 | 721 | | |
| |||
733 | 735 | | |
734 | 736 | | |
735 | 737 | | |
| 738 | + | |
| 739 | + | |
736 | 740 | | |
737 | 741 | | |
738 | 742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
438 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
439 | 450 | | |
440 | 451 | | |
441 | 452 | | |
| |||
459 | 470 | | |
460 | 471 | | |
461 | 472 | | |
| 473 | + | |
462 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
463 | 485 | | |
464 | 486 | | |
465 | 487 | | |
| |||
491 | 513 | | |
492 | 514 | | |
493 | 515 | | |
| 516 | + | |
494 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
495 | 528 | | |
496 | 529 | | |
497 | 530 | | |
| |||
514 | 547 | | |
515 | 548 | | |
516 | 549 | | |
| 550 | + | |
517 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
518 | 562 | | |
519 | 563 | | |
520 | 564 | | |
0 commit comments