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

e2e: add test for jwt claim base routing #2712

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Conversation

zirain
Copy link
Member

@zirain zirain commented Feb 27, 2024

Fixes: #2690

@zirain zirain requested a review from a team as a code owner February 27, 2024 15:38
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.42%. Comparing base (6d8337e) to head (5889a46).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2712      +/-   ##
==========================================
+ Coverage   63.34%   63.42%   +0.08%     
==========================================
  Files         123      123              
  Lines       19979    19979              
==========================================
+ Hits        12655    12671      +16     
+ Misses       6513     6500      -13     
+ Partials      811      808       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# catch all
- backendRefs:
- kind: Service
name: infra-backend-v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets make this non existent (infra-backend-invalid) since that is what users will most likely do

Copy link
Member Author

@zirain zirain Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL, I used to think it will be ignored if name is not found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status will be set to ResolvedRef=False and requests will get 500
we ideally need something like #2714 but it doesnt exist today :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's added to istio recently.

test/e2e/tests/jwt.go Outdated Show resolved Hide resolved
@zirain zirain force-pushed the jwt-e2e branch 2 times, most recently from 02108f2 to 0304449 Compare February 28, 2024 03:43
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for adding this !
cc @zetaab

@zirain
Copy link
Member Author

zirain commented Feb 28, 2024

/retest

@arkodg arkodg requested review from a team February 29, 2024 00:00
@zhaohuabing zhaohuabing merged commit 8b0bbd3 into envoyproxy:main Feb 29, 2024
17 checks passed
@zirain zirain deleted the jwt-e2e branch February 29, 2024 01:56
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.

e2e: JWT Claim based routing
3 participants