From 880871a2eab1a24a097dc8849a41e4ae0145bd59 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 6 Jul 2017 16:56:29 -0400 Subject: [PATCH] auth.test: increase duration to avoid flakes --- auth/test/test_registry_jwt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/test/test_registry_jwt.py b/auth/test/test_registry_jwt.py index 9b1d6514f..00e1aa96c 100644 --- a/auth/test/test_registry_jwt.py +++ b/auth/test/test_registry_jwt.py @@ -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))),