Skip to content

Commit

Permalink
test: Check response from get jwks api
Browse files Browse the repository at this point in the history
  • Loading branch information
KShivendu committed Sep 22, 2023
1 parent 3bf5dd6 commit 73bce83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/jwt/test_get_JWKS.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ async def get_jwks(user_context: Dict[str, Any]):
# Default:
assert response.status_code == 200
data = response.json()
assert data.keys() == {"keys"}
assert len(data["keys"]) > 0
assert data["keys"][0].keys() == {'kty', 'kid', 'n', 'e', 'alg', 'use'}

assert response.headers["cache-control"] == "max-age=60, must-revalidate"

Expand Down

0 comments on commit 73bce83

Please sign in to comment.