diff --git a/dbrepo-search-service/init/tests/test_keycloak_client.py b/dbrepo-search-service/init/tests/test_keycloak_client.py index 0c43da230102f4d9c5a7401d7adbd6a9843e90f1..f52faf78c69ae7ec816721036d8f3c3fc58692e8 100644 --- a/dbrepo-search-service/init/tests/test_keycloak_client.py +++ b/dbrepo-search-service/init/tests/test_keycloak_client.py @@ -23,7 +23,7 @@ class JwtTest(unittest.TestCase): 'roles': roles } } - with open('test/rsa/rs256.key', 'rb') as fh: + with open('tests/rsa/rs256.key', 'rb') as fh: return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256') def test_obtain_user_token_succeeds(self): diff --git a/dbrepo-search-service/tests/test_app.py b/dbrepo-search-service/tests/test_app.py index 0c577b228a951064ffd650b860100ad17f80ba72..2b765b77544239bc0f6f3352ced6b07625ab291b 100644 --- a/dbrepo-search-service/tests/test_app.py +++ b/dbrepo-search-service/tests/test_app.py @@ -61,7 +61,7 @@ class JwtTest(unittest.TestCase): 'roles': roles } } - with open('test/rsa/rs256.key', 'rb') as fh: + with open('tests/rsa/rs256.key', 'rb') as fh: return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256') def test_update_database_media_type_fails(self): diff --git a/dbrepo-search-service/tests/test_jwt.py b/dbrepo-search-service/tests/test_jwt.py index 1f23853a7cbd6b6d30cdf29a09daafac012b7916..6c2b16989300e49196f6ece00ad18b5296f7cff6 100644 --- a/dbrepo-search-service/tests/test_jwt.py +++ b/dbrepo-search-service/tests/test_jwt.py @@ -25,7 +25,7 @@ class JwtTest(unittest.TestCase): 'roles': roles } } - with open('test/rsa/rs256.key', 'rb') as fh: + with open('tests/rsa/rs256.key', 'rb') as fh: return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256') def test_verify_token_no_token_fails(self):