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

Add identical hostnames tests for desired behavior #477

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

trepel
Copy link
Contributor

@trepel trepel commented Jul 4, 2024

Overview

Last piece to address #406

Follows up on #439 and #462 which added similar tests for AuthPolicy and RateLimitPolicy (RLP) respectively, but these tests validating current behavior.

The tests in this PR cover two scenarios, both testing desired behavior. Desired behavior means that Kuadrant does not behave like that yet so the tests are expected to fail. Once they start passing it means that implementation has changed and it would be good to take a closer look how and if that makes sense and update the testsuite accordingly.

Scenario 1.

Test that 2nd Gateway-attached AuthPolicy is actually enforced on route (currently it states that it is enforced but effectively it is ignored)

Scenario 2.

Test that 2nd HTTPRoute-attached AuthPolicy is enforced (currently it fails with an error, status being Enforced=False)

Scenario 3.

Test that the 1st HTTPRoute-attached RLP is effectively enforced (currently it is effectively ignored because the 2nd HTTPRoute-attached RLP "kicks" it off)

Verification Steps

Run the three tests. Or even better run the whole dir with all the "identical hostname" tests. 4 tests should pass, 3 should be xfailed. It should take roughly 8-9 minutes:

$ make testsuite/tests/kuadrant/identical_hostnames/
...
======= 4 passed, 2 xfailed in 473.34s (0:07:53) =======

@trepel trepel force-pushed the identical-hostnames-desired-behavor branch from 348654b to 60f28b2 Compare July 4, 2024 13:42
@trepel trepel requested a review from pehala July 4, 2024 13:43
pehala
pehala previously approved these changes Jul 4, 2024
@pehala
Copy link
Contributor

pehala commented Jul 8, 2024

Needs rebase due to #473 (sorry :D)

@trepel
Copy link
Contributor Author

trepel commented Jul 9, 2024

Needs rebase due to #473 (sorry :D)

Grrrr! :) Rebased!

@trepel trepel requested a review from pehala July 9, 2024 08:33
@trepel trepel merged commit 96c2ffb into Kuadrant:main Jul 9, 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