🧪 add tier0 NetworkPolicy migration coverage for namespace-admin …#595
Open
msajidmansoori12 wants to merge 3 commits into
Open
🧪 add tier0 NetworkPolicy migration coverage for namespace-admin …#595msajidmansoori12 wants to merge 3 commits into
msajidmansoori12 wants to merge 3 commits into
Conversation
📝 WalkthroughWalkthroughAdds a new e2e test file for MTA-839 verifying NetworkPolicy migration. The test sets up non-admin namespace-admin permissions, creates a NetworkPolicy on the source cluster, runs crane export/transform/apply, applies output to target, and asserts spec parity between source and target NetworkPolicies. ChangesNetworkPolicy migration e2e test
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant Test as E2E Test
participant Source as Source Cluster
participant Crane as Crane Pipeline
participant Target as Target Cluster
Test->>Source: Create NetworkPolicy and prepare app
Test->>Crane: Run export/transform/apply
Crane->>Source: Export NetworkPolicy manifest
Crane-->>Test: Rendered NetworkPolicy_*.yaml
Test->>Target: Apply rendered manifests
Test->>Target: Scale deployment
Test->>Target: Wait for app validation success
Test->>Target: Fetch NetworkPolicy JSON
Test->>Test: Assert source vs target spec equality
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Test Coverage ReportTotal: 47.8% Per-package coverage
Full function-level detailsPosted by CI |
Signed-off-by: M Sajid Mansoori <mmansoor@redhat.com>
Contributor
Author
|
/rfr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…flow
Summary by CodeRabbit