summaryrefslogtreecommitdiff
path: root/keystonemiddleware
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2019-05-08 14:00:26 +0200
committerBernhard M. Wiedemann <bwiedemann@suse.de>2019-09-17 13:19:24 +0200
commit4a4c96ce9b28ed54f93a21ca405c5b34ef3c3429 (patch)
tree648964152482bf20626bed0d77db129f706c0f35 /keystonemiddleware
parentd1bd783a77e5b6ae057ba9b13833ff0584e1589b (diff)
downloadkeystonemiddleware-4a4c96ce9b28ed54f93a21ca405c5b34ef3c3429.tar.gz
Make tests pass in 2022
Background: As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future. The usual offset is +15 years, because that is how long I expect some software will be used in some places. This showed up failing tests in our package build. See https://reproducible-builds.org/ for why this matters. This makes it expire 1 year in the future to model realistic tokens. Change-Id: I73bde68be53afff4e8dff12d756b8381f34b2adb
Diffstat (limited to 'keystonemiddleware')
-rw-r--r--keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py b/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
index 9fd0328..a09d269 100644
--- a/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
+++ b/keystonemiddleware/tests/unit/auth_token/test_auth_token_middleware.py
@@ -83,7 +83,8 @@ BASE_URI = '%s/testadmin' % BASE_HOST
FAKE_ADMIN_TOKEN_ID = 'admin_token2'
FAKE_ADMIN_TOKEN = jsonutils.dumps(
{'access': {'token': {'id': FAKE_ADMIN_TOKEN_ID,
- 'expires': '2022-10-03T16:58:01Z'}}})
+ 'expires': '%i-10-03T16:58:01Z' %
+ (1 + time.gmtime().tm_year)}}})
VERSION_LIST_v3 = fixture.DiscoveryList(href=BASE_URI)
VERSION_LIST_v2 = fixture.DiscoveryList(v3=False, href=BASE_URI)