From 985d43d399cda5de4dbeb82094fdaeed72ec1b75 Mon Sep 17 00:00:00 2001 From: Daniil <94884910+Filienko@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:50:07 -0700 Subject: [PATCH] ADding details --- tests/test_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index e67a6eb..587e6e9 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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' @@ -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