diff options
| author | Jamie Lennox <jamielennox@redhat.com> | 2014-04-04 11:59:38 +1000 |
|---|---|---|
| committer | Jamie Lennox <jamielennox@redhat.com> | 2014-04-04 12:15:41 +1000 |
| commit | 56eaaf8e1c78f94dea6951d2d8ddeac0f6d2e682 (patch) | |
| tree | 20cbb1aaf841595f0810f840cee9cd834f43c348 /cinderclient/tests | |
| parent | 5278bdb0c53e34a6c647a0f8f6158f37236a9d2f (diff) | |
| download | python-cinderclient-56eaaf8e1c78f94dea6951d2d8ddeac0f6d2e682.tar.gz | |
Use real timestamps in authentication tests
Using a non time string means it won't be correctly parsed by anything
in keystoneclient trying to read those auth responses.
Change-Id: I6db79d3cf7596044a281cc85de014691f81c1fd1
Blueprint: use-session
Diffstat (limited to 'cinderclient/tests')
| -rw-r--r-- | cinderclient/tests/v1/test_auth.py | 6 | ||||
| -rw-r--r-- | cinderclient/tests/v2/test_auth.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cinderclient/tests/v1/test_auth.py b/cinderclient/tests/v1/test_auth.py index 2e8a865..290bf2c 100644 --- a/cinderclient/tests/v1/test_auth.py +++ b/cinderclient/tests/v1/test_auth.py @@ -28,7 +28,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): resp = { "access": { "token": { - "expires": "12345", + "expires": "2014-11-01T03:32:15-05:00", "id": "FAKE_ID", }, "serviceCatalog": [ @@ -95,7 +95,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): resp = { "access": { "token": { - "expires": "12345", + "expires": "2014-11-01T03:32:15-05:00", "id": "FAKE_ID", "tenant": { "description": None, @@ -186,7 +186,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): dict_correct_response = { "access": { "token": { - "expires": "12345", + "expires": "2014-11-01T03:32:15-05:00", "id": "FAKE_ID", }, "serviceCatalog": [ diff --git a/cinderclient/tests/v2/test_auth.py b/cinderclient/tests/v2/test_auth.py index b174350..85518c6 100644 --- a/cinderclient/tests/v2/test_auth.py +++ b/cinderclient/tests/v2/test_auth.py @@ -31,7 +31,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): resp = { "access": { "token": { - "expires": "12345", + "expires": "2014-11-01T03:32:15-05:00", "id": "FAKE_ID", }, "serviceCatalog": [ @@ -98,7 +98,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): resp = { "access": { "token": { - "expires": "12345", + "expires": "2014-11-01T03:32:15-05:00", "id": "FAKE_ID", "tenant": { "description": None, @@ -189,7 +189,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase): dict_correct_response = { "access": { "token": { - "expires": "12345", + "expires": "2014-11-01T03:32:15-05:00", "id": "FAKE_ID", }, "serviceCatalog": [ |
