AuthPolicy section targeting tests#702
Merged
azgabur merged 6 commits intoKuadrant:mainfrom Sep 23, 2025
Merged
Conversation
azgabur
reviewed
Jul 8, 2025
344e8b7 to
ab9febd
Compare
azgabur
reviewed
Jul 17, 2025
Member
azgabur
left a comment
There was a problem hiding this comment.
After few changes this test will nicely check for AuthPolicy targeting section name in HttpRoute. Next PR can add test for AuthPolicy targeting sec. name in Gateway. And next PR's for other Policies in same way
22ce4e7 to
2ee518b
Compare
2ee518b to
b326c5d
Compare
Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
The test creates a Gateway with two listeners (one secure, one public) and two separate HTTPRoute resources to provide an unambiguous configuration for the gateway controller. It asserts that the policy only protects the targeted listener, while the other listener remains public and unaffected. Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
b326c5d to
1ce25a2
Compare
azgabur
reviewed
Jul 23, 2025
…hPolicy section targeting Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
95f1301 to
b2eb9e5
Compare
azgabur
reviewed
Aug 5, 2025
Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
azgabur
reviewed
Aug 12, 2025
79e59c9 to
bc7a2e0
Compare
…ther section name tests. Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
bc7a2e0 to
11fa839
Compare
Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
Contributor
|
/make kuadrant |
|
Test run has started ( |
Contributor
|
/make kuadrant |
|
Test run has started ( |
Contributor
|
/make kuadrant |
|
Test run has started ( |
averevki
approved these changes
Sep 23, 2025
azgabur
approved these changes
Sep 23, 2025
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.
Verifies that AuthPolicy applies only to specific HTTPRoute path (/get) when sectionName is set to api and CEL condition restricts application to that path. Unauthenticated access to /anything is allowed, while /get requires a valid token.