Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added identical hostnames test for AuthPolicy #439

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

trepel
Copy link
Contributor

@trepel trepel commented Jun 14, 2024

Overview

Partially addresses #406

It covers two scenarios, both testing current behavior

  1. Two AuthPolicies being attached to GW and HTTPRoute with identical hostname respectively
  2. Two AuthPolicies being attached to two HTTPRoutes with identical hostname each

For details see https://github.com/Kuadrant/kuadrant-operator/blob/main/doc/auth.md#limitation-multiple-network-resources-with-identical-hostnames

Verification Steps

Eye review, execute both tests and make sure they pass.

Note

I will proceed with RateLimitPolicy (RLP) scenarios once this is reviewed so that I can incorporate feedback from this PR there. The 1) scenario for RLP is identical, I will think of using parametrized fixture called policy instead of having two identical tests one using AuthPolicy and other RLP.
The 2) scenario for RLP is slightly different, not sure if it makes sense to try to use the same test for both

@trepel trepel requested review from ficap and azgabur June 14, 2024 09:32
@trepel trepel force-pushed the identical-hostname-auth-tests branch 2 times, most recently from cd961de to 6544537 Compare June 14, 2024 10:43
@trepel trepel force-pushed the identical-hostname-auth-tests branch 2 times, most recently from 169e57b to 2d8f4e5 Compare June 17, 2024 09:49
@trepel trepel force-pushed the identical-hostname-auth-tests branch from 2d8f4e5 to cc7e5d5 Compare June 17, 2024 14:17
@trepel trepel force-pushed the identical-hostname-auth-tests branch from cc7e5d5 to cc7bef6 Compare June 19, 2024 06:43
pehala
pehala previously approved these changes Jun 19, 2024
@trepel trepel force-pushed the identical-hostname-auth-tests branch 2 times, most recently from e0433e6 to dd31403 Compare June 21, 2024 11:07
@trepel trepel requested a review from pehala June 21, 2024 11:08
@trepel trepel force-pushed the identical-hostname-auth-tests branch from dd31403 to 2e036a0 Compare June 21, 2024 13:40
@trepel trepel requested a review from pehala June 21, 2024 13:41
@jsmolar jsmolar merged commit 0b02c4c into Kuadrant:main Jun 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants