From 36b72559a51a12adeee6c4c9b410a2a0f297fd3b Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Tue, 15 Nov 2011 07:48:48 -0800 Subject: [PATCH] Assert we receive a scoped token & the correct user Change-Id: If4d133c721ccdb296f38921dde49a02cd47d6742 --- kong/tests/test_auth.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kong/tests/test_auth.py b/kong/tests/test_auth.py index bc040a8ca7..2e2546ac8f 100644 --- a/kong/tests/test_auth.py +++ b/kong/tests/test_auth.py @@ -19,8 +19,6 @@ import httplib2 import json -import os -import time import uuid from kong import keystone @@ -67,6 +65,10 @@ class TestKeystoneAuth(tests.FunctionalTest): self.assertEqual(response.status, 200) res_body = json.loads(content) self.assertTrue(res_body['access']['token']['id']) + self.assertTrue(res_body['access']['token']['tenant']['id'], + self.tenant_id) + self.assertTrue(res_body['access']['user']['name'], + self.user) test_can_get_token.tags = ['auth'] def test_bad_user(self):