diff --git a/auth/test/test_registry_jwt.py b/auth/test/test_registry_jwt.py index de9dbe6a0..37db6555f 100644 --- a/auth/test/test_registry_jwt.py +++ b/auth/test/test_registry_jwt.py @@ -5,7 +5,6 @@ import pytest from app import app, instance_keys from auth.registry_jwt_auth import identity_from_bearer_token, InvalidJWTException -from endpoints.v2.v2auth import TOKEN_VALIDITY_LIFETIME_S from initdb import setup_database_for_testing, finished_database_for_testing from util.morecollections import AttrDict from util.security.registry_jwt import ANONYMOUS_SUB, build_context_and_subject @@ -14,6 +13,8 @@ from util.security.registry_jwt import ANONYMOUS_SUB, build_context_and_subject TEST_AUDIENCE = app.config['SERVER_HOSTNAME'] TEST_USER = AttrDict({'username': 'joeuser'}) MAX_SIGNED_S = 3660 +TOKEN_VALIDITY_LIFETIME_S = 60 * 60 # 1 hour +ANONYMOUS_SUB = '(anonymous)' def _access(typ='repository', name='somens/somerepo', actions=None):