From f2adf271e719647b8e3f8bd13dce84a35dfcb932 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Sun, 4 May 2014 14:52:53 -0500 Subject: [PATCH] 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 --- keystoneclient/tests/client_fixtures.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/keystoneclient/tests/client_fixtures.py b/keystoneclient/tests/client_fixtures.py index 174316261..6aabd99b6 100644 --- a/keystoneclient/tests/client_fixtures.py +++ b/keystoneclient/tests/client_fixtures.py @@ -330,6 +330,7 @@ class Examples(fixtures.Fixture): 'access': { 'token': { 'id': self.SIGNED_TOKEN_SCOPED_KEY, + 'expires': '2020-01-01T00:00:10.000123Z', }, 'user': { 'id': 'user_id1', @@ -347,6 +348,7 @@ class Examples(fixtures.Fixture): 'access': { 'token': { 'id': self.SIGNED_TOKEN_UNSCOPED_KEY, + 'expires': '2020-01-01T00:00:10.000123Z', }, 'user': { 'id': 'user_id1', @@ -360,7 +362,7 @@ class Examples(fixtures.Fixture): }, self.SIGNED_v3_TOKEN_SCOPED_KEY: { 'token': { - 'expires': '2020-01-01T00:00:10.000123Z', + 'expires_at': '2020-01-01T00:00:10.000123Z', 'methods': ['password'], 'user': { 'id': 'user_id1',