auth.test: increase duration to avoid flakes
This commit is contained in:
parent
8a6417869d
commit
880871a2ea
1 changed files with 3 additions and 3 deletions
|
@ -9,12 +9,12 @@ 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
|
||||
|
||||
|
||||
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)'
|
||||
SERVICE_NAME = 'quay'
|
||||
|
||||
|
||||
def setup_module(m):
|
||||
|
@ -117,9 +117,9 @@ def test_token_with_access(access):
|
|||
'akshuns': ['pull', 'push', '*']}]))),
|
||||
(_token(_token_data(audience='someotherapp'))),
|
||||
(_token(_delete_field(_token_data(), 'aud'))),
|
||||
(_token(_token_data(nbf=int(time.time()) + 60))),
|
||||
(_token(_token_data(nbf=int(time.time()) + 600))),
|
||||
(_token(_delete_field(_token_data(), 'nbf'))),
|
||||
(_token(_token_data(iat=int(time.time()) + 60))),
|
||||
(_token(_token_data(iat=int(time.time()) + 600))),
|
||||
(_token(_delete_field(_token_data(), 'iat'))),
|
||||
(_token(_token_data(exp=int(time.time()) + MAX_SIGNED_S * 2))),
|
||||
(_token(_token_data(exp=int(time.time()) - 60))),
|
||||
|
|
Reference in a new issue