Fix client fixtures

Some of the client fixtures used for testing were invalid. v2
tokens must have 'access'/'token'/'expires', and v3 tokens must
have 'token'/'expires_at'.

Change-Id: I2614c7deed47c9758c2031418110108308634296
Related-Bug: #1174499
This commit is contained in:
Brant Knudson
2014-05-04 14:52:53 -05:00
parent 570a9dc22d
commit f2adf271e7

View File

@@ -330,6 +330,7 @@ class Examples(fixtures.Fixture):
'access': { 'access': {
'token': { 'token': {
'id': self.SIGNED_TOKEN_SCOPED_KEY, 'id': self.SIGNED_TOKEN_SCOPED_KEY,
'expires': '2020-01-01T00:00:10.000123Z',
}, },
'user': { 'user': {
'id': 'user_id1', 'id': 'user_id1',
@@ -347,6 +348,7 @@ class Examples(fixtures.Fixture):
'access': { 'access': {
'token': { 'token': {
'id': self.SIGNED_TOKEN_UNSCOPED_KEY, 'id': self.SIGNED_TOKEN_UNSCOPED_KEY,
'expires': '2020-01-01T00:00:10.000123Z',
}, },
'user': { 'user': {
'id': 'user_id1', 'id': 'user_id1',
@@ -360,7 +362,7 @@ class Examples(fixtures.Fixture):
}, },
self.SIGNED_v3_TOKEN_SCOPED_KEY: { self.SIGNED_v3_TOKEN_SCOPED_KEY: {
'token': { 'token': {
'expires': '2020-01-01T00:00:10.000123Z', 'expires_at': '2020-01-01T00:00:10.000123Z',
'methods': ['password'], 'methods': ['password'],
'user': { 'user': {
'id': 'user_id1', 'id': 'user_id1',