You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix HCP test suite BeforeAll failures and nil pointer panics (#1908)
This commit addresses the HCP backup and restore test suite failing with:
1. "multicluster-engine PackageManifest not found" errors
2. Nil pointer dereference panics in cleanup functions
Changes made:
- Add WaitForCatalogSourceReady() function to wait for CatalogSource to be READY
- Add WaitForPackageManifest() function to wait for PackageManifest availability
- Update BeforeAll to wait for prerequisites before operator installation
- Use libhcp constants (RHOperatorsNamespace, OCPMarketplaceNamespace) instead of hardcoded strings
- Use ginkgo.Fail() instead of ginkgo.Skip() for prerequisite failures
- Add nil checks in AfterAll and AfterEach to prevent cleanup panics
- Remove unused error variable to fix linting issues
The test suite now properly handles timing issues with operator catalog
synchronization and reports prerequisite failures as test failures rather
than skipped tests.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <[email protected]>
0 commit comments