Make tests pass in 2020
This issue was found while working on reproducible builds for openSUSE. This solves it similar to change I73bde68be53afff4e8dff12d756b8381f34b2adb Changed month to February to avoid races around new year. Change-Id: I2a28f3f4eaabaa772df395f3f5d55b6fd78f8968
This commit is contained in:
parent
b59ef48a35
commit
4461358098
|
@ -12,6 +12,7 @@
|
|||
|
||||
import copy
|
||||
import json
|
||||
import time
|
||||
import uuid
|
||||
|
||||
from keystoneauth1 import _utils as ksa_utils
|
||||
|
@ -84,7 +85,8 @@ class V2IdentityPlugin(utils.TestCase):
|
|||
self.TEST_RESPONSE_DICT = {
|
||||
"access": {
|
||||
"token": {
|
||||
"expires": "2020-01-01T00:00:10.000123Z",
|
||||
"expires": "%i-02-01T00:00:10.000123Z" %
|
||||
(1 + time.gmtime().tm_year),
|
||||
"id": self.TEST_TOKEN,
|
||||
"tenant": {
|
||||
"id": self.TEST_TENANT_ID
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
import copy
|
||||
import json
|
||||
import time
|
||||
import uuid
|
||||
|
||||
from keystoneauth1 import _utils as ksa_utils
|
||||
|
@ -135,6 +136,7 @@ class V3IdentityPlugin(utils.TestCase):
|
|||
self.TEST_DISCOVERY_RESPONSE = {
|
||||
'versions': {'values': [fixture.V3Discovery(self.TEST_URL)]}}
|
||||
|
||||
nextyear = 1 + time.gmtime().tm_year
|
||||
self.TEST_RESPONSE_DICT = {
|
||||
"token": {
|
||||
"methods": [
|
||||
|
@ -142,7 +144,7 @@ class V3IdentityPlugin(utils.TestCase):
|
|||
"password"
|
||||
],
|
||||
|
||||
"expires_at": "2020-01-01T00:00:10.000123Z",
|
||||
"expires_at": "%i-02-01T00:00:10.000123Z" % nextyear,
|
||||
"project": {
|
||||
"domain": {
|
||||
"id": self.TEST_DOMAIN_ID,
|
||||
|
@ -195,7 +197,7 @@ class V3IdentityPlugin(utils.TestCase):
|
|||
"application_credential"
|
||||
],
|
||||
|
||||
"expires_at": "2020-01-01T00:00:10.000123Z",
|
||||
"expires_at": "%i-02-01T00:00:10.000123Z" % nextyear,
|
||||
"project": {
|
||||
"domain": {
|
||||
"id": self.TEST_DOMAIN_ID,
|
||||
|
@ -221,7 +223,7 @@ class V3IdentityPlugin(utils.TestCase):
|
|||
self.TEST_RECEIPT_RESPONSE = {
|
||||
"receipt": {
|
||||
"methods": ["password"],
|
||||
"expires_at": "2020-01-01T00:00:10.000123Z",
|
||||
"expires_at": "%i-02-01T00:00:10.000123Z" % nextyear,
|
||||
"user": {
|
||||
"domain": {
|
||||
"id": self.TEST_DOMAIN_ID,
|
||||
|
|
Loading…
Reference in New Issue