Skip to content

Commit

Permalink
ADding details
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Aug 14, 2024
1 parent cab9e8a commit 985d43d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setUp(self):
self.app.config['TESTING'] = True
self.app.config['UPSTREAM_SERVER'] = 'http://example.com'
self.app.config['JWKS_URL'] = 'http://jwks.example.com'
self.app.config['PATH_WHITELIST'] = ['/whitelisted'] # Adding the whitelisted path
self.app.config['PATH_WHITELIST'] = ['/whitelisted']
self.app.config['OIDC_AUTHORIZE_URL'] = 'http://authorize.example.com'
self.app.config['OIDC_TOKEN_URI'] = 'http://token.example.com'
self.app.config['OIDC_TOKEN_INTROSPECTION_URI'] = 'http://introspection.example.com'
Expand Down Expand Up @@ -60,6 +60,9 @@ def test_validate_jwt(self, mock_decode, mock_jwk_client):

# Test whitelisted path without token
response = self.client.get('/whitelisted')
print(f'Status Code: {response.status_code}')
print(f'Response Data: {response.data.decode()}')
print(f'Response JSON: {response.json}')
self.assertEqual(response.status_code, 200)

# Test valid token
Expand Down

0 comments on commit 985d43d

Please sign in to comment.