ZhiQiang Fan | 39f9722 | 2013-09-20 04:49:44 +0800 | [diff] [blame] | 1 | # Copyright 2012 OpenStack Foundation |
Jay Pipes | f38eaac | 2012-06-21 13:37:35 -0400 | [diff] [blame] | 2 | # All Rights Reserved. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 | # not use this file except in compliance with the License. You may obtain |
| 6 | # a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | # License for the specific language governing permissions and limitations |
| 14 | # under the License. |
| 15 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 16 | from testtools import matchers |
Sean Dague | 1937d09 | 2013-05-17 16:36:38 -0400 | [diff] [blame] | 17 | |
| 18 | from tempest.api.identity import base |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 19 | from tempest.common.utils import data_utils |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 20 | from tempest import test |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 21 | |
| 22 | |
Matthew Treinish | db2c597 | 2014-01-31 22:18:59 +0000 | [diff] [blame] | 23 | class UsersTestJSON(base.BaseIdentityV2AdminTest): |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 24 | |
Adalberto Medeiros | 081464b | 2013-08-16 09:41:29 -0400 | [diff] [blame] | 25 | @classmethod |
Andrea Frittoli | 7688e74 | 2014-09-15 12:38:22 +0100 | [diff] [blame] | 26 | def resource_setup(cls): |
| 27 | super(UsersTestJSON, cls).resource_setup() |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 28 | cls.alt_user = data_utils.rand_name('test_user_') |
| 29 | cls.alt_password = data_utils.rand_name('pass_') |
Adalberto Medeiros | 081464b | 2013-08-16 09:41:29 -0400 | [diff] [blame] | 30 | cls.alt_email = cls.alt_user + '@testmail.tm' |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 31 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 32 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 33 | @test.idempotent_id('2d55a71e-da1d-4b43-9c03-d269fd93d905') |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 34 | def test_create_user(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 35 | # Create a user |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 36 | self.data.setup_test_tenant() |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 37 | user = self.client.create_user(self.alt_user, self.alt_password, |
| 38 | self.data.tenant['id'], |
| 39 | self.alt_email) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 40 | self.data.users.append(user) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 41 | self.assertEqual(self.alt_user, user['name']) |
| 42 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 43 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 44 | @test.idempotent_id('89d9fdb8-15c2-4304-a429-48715d0af33d') |
huangtianhua | fc8db4f | 2013-10-08 12:05:58 +0800 | [diff] [blame] | 45 | def test_create_user_with_enabled(self): |
| 46 | # Create a user with enabled : False |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 47 | self.data.setup_test_tenant() |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 48 | name = data_utils.rand_name('test_user_') |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 49 | user = self.client.create_user(name, self.alt_password, |
| 50 | self.data.tenant['id'], |
| 51 | self.alt_email, enabled=False) |
huangtianhua | fc8db4f | 2013-10-08 12:05:58 +0800 | [diff] [blame] | 52 | self.data.users.append(user) |
huangtianhua | fc8db4f | 2013-10-08 12:05:58 +0800 | [diff] [blame] | 53 | self.assertEqual(name, user['name']) |
| 54 | self.assertEqual('false', str(user['enabled']).lower()) |
| 55 | self.assertEqual(self.alt_email, user['email']) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 56 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 57 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 58 | @test.idempotent_id('39d05857-e8a5-4ed4-ba83-0b52d3ab97ee') |
Chang Bo Guo | b36b2f1 | 2013-09-13 04:52:00 -0700 | [diff] [blame] | 59 | def test_update_user(self): |
| 60 | # Test case to check if updating of user attributes is successful. |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 61 | test_user = data_utils.rand_name('test_user_') |
Chang Bo Guo | b36b2f1 | 2013-09-13 04:52:00 -0700 | [diff] [blame] | 62 | self.data.setup_test_tenant() |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 63 | user = self.client.create_user(test_user, self.alt_password, |
| 64 | self.data.tenant['id'], |
| 65 | self.alt_email) |
Chang Bo Guo | b36b2f1 | 2013-09-13 04:52:00 -0700 | [diff] [blame] | 66 | # Delete the User at the end of this method |
| 67 | self.addCleanup(self.client.delete_user, user['id']) |
| 68 | # Updating user details with new values |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 69 | u_name2 = data_utils.rand_name('user2-') |
Chang Bo Guo | b36b2f1 | 2013-09-13 04:52:00 -0700 | [diff] [blame] | 70 | u_email2 = u_name2 + '@testmail.tm' |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 71 | update_user = self.client.update_user(user['id'], name=u_name2, |
| 72 | email=u_email2, |
| 73 | enabled=False) |
Chang Bo Guo | b36b2f1 | 2013-09-13 04:52:00 -0700 | [diff] [blame] | 74 | self.assertEqual(u_name2, update_user['name']) |
| 75 | self.assertEqual(u_email2, update_user['email']) |
| 76 | self.assertEqual('false', str(update_user['enabled']).lower()) |
| 77 | # GET by id after updating |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 78 | updated_user = self.client.get_user(user['id']) |
Chang Bo Guo | b36b2f1 | 2013-09-13 04:52:00 -0700 | [diff] [blame] | 79 | # Assert response body of GET after updating |
| 80 | self.assertEqual(u_name2, updated_user['name']) |
| 81 | self.assertEqual(u_email2, updated_user['email']) |
| 82 | self.assertEqual('false', str(updated_user['enabled']).lower()) |
| 83 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 84 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 85 | @test.idempotent_id('29ed26f4-a74e-4425-9a85-fdb49fa269d2') |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 86 | def test_delete_user(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 87 | # Delete a user |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 88 | test_user = data_utils.rand_name('test_user_') |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 89 | self.data.setup_test_tenant() |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 90 | user = self.client.create_user(test_user, self.alt_password, |
| 91 | self.data.tenant['id'], |
| 92 | self.alt_email) |
David Kranz | e9d2f42 | 2014-07-02 13:57:41 -0400 | [diff] [blame] | 93 | self.client.delete_user(user['id']) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 94 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 95 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 96 | @test.idempotent_id('aca696c3-d645-4f45-b728-63646045beb1') |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 97 | def test_user_authentication(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 98 | # Valid user's token is authenticated |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 99 | self.data.setup_test_user() |
| 100 | # Get a token |
| 101 | self.token_client.auth(self.data.test_user, self.data.test_password, |
Zhongyue Luo | 79d8d36 | 2012-09-25 13:49:27 +0800 | [diff] [blame] | 102 | self.data.test_tenant) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 103 | # Re-auth |
David Kranz | fb3efa7 | 2014-08-28 16:58:25 -0400 | [diff] [blame] | 104 | self.token_client.auth(self.data.test_user, |
| 105 | self.data.test_password, |
| 106 | self.data.test_tenant) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 107 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 108 | @test.attr(type='gate') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 109 | @test.idempotent_id('5d1fa498-4c2d-4732-a8fe-2b054598cfdd') |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 110 | def test_authentication_request_without_token(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 111 | # Request for token authentication with a valid token in header |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 112 | self.data.setup_test_user() |
| 113 | self.token_client.auth(self.data.test_user, self.data.test_password, |
| 114 | self.data.test_tenant) |
| 115 | # Get the token of the current client |
Andrea Frittoli | 8bbdb16 | 2014-01-06 11:06:13 +0000 | [diff] [blame] | 116 | token = self.client.auth_provider.get_token() |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 117 | # Delete the token from database |
| 118 | self.client.delete_token(token) |
| 119 | # Re-auth |
David Kranz | fb3efa7 | 2014-08-28 16:58:25 -0400 | [diff] [blame] | 120 | self.token_client.auth(self.data.test_user, |
| 121 | self.data.test_password, |
| 122 | self.data.test_tenant) |
Andrea Frittoli | 8bbdb16 | 2014-01-06 11:06:13 +0000 | [diff] [blame] | 123 | self.client.auth_provider.clear_auth() |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 124 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 125 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 126 | @test.idempotent_id('a149c02e-e5e0-4b89-809e-7e8faf33ccda') |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 127 | def test_get_users(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 128 | # Get a list of users and find the test user |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 129 | self.data.setup_test_user() |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 130 | users = self.client.get_users() |
ivan-zhu | 1feeb38 | 2013-01-24 10:14:39 +0800 | [diff] [blame] | 131 | self.assertThat([u['name'] for u in users], |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 132 | matchers.Contains(self.data.test_user), |
ivan-zhu | 1feeb38 | 2013-01-24 10:14:39 +0800 | [diff] [blame] | 133 | "Could not find %s" % self.data.test_user) |
Rohit Karajgi | 6b1e154 | 2012-05-14 05:55:54 -0700 | [diff] [blame] | 134 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 135 | @test.attr(type='gate') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 136 | @test.idempotent_id('6e317209-383a-4bed-9f10-075b7c82c79a') |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 137 | def test_list_users_for_tenant(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 138 | # Return a list of all users for a tenant |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 139 | self.data.setup_test_tenant() |
| 140 | user_ids = list() |
| 141 | fetched_user_ids = list() |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 142 | alt_tenant_user1 = data_utils.rand_name('tenant_user1_') |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 143 | user1 = self.client.create_user(alt_tenant_user1, 'password1', |
| 144 | self.data.tenant['id'], |
| 145 | 'user1@123') |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 146 | user_ids.append(user1['id']) |
| 147 | self.data.users.append(user1) |
Adalberto Medeiros | 081464b | 2013-08-16 09:41:29 -0400 | [diff] [blame] | 148 | |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 149 | alt_tenant_user2 = data_utils.rand_name('tenant_user2_') |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 150 | user2 = self.client.create_user(alt_tenant_user2, 'password2', |
| 151 | self.data.tenant['id'], |
| 152 | 'user2@123') |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 153 | user_ids.append(user2['id']) |
| 154 | self.data.users.append(user2) |
Attila Fazekas | f7f34f9 | 2013-08-01 17:01:44 +0200 | [diff] [blame] | 155 | # List of users for the respective tenant ID |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 156 | body = self.client.list_users_for_tenant(self.data.tenant['id']) |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 157 | for i in body: |
| 158 | fetched_user_ids.append(i['id']) |
Attila Fazekas | f7f34f9 | 2013-08-01 17:01:44 +0200 | [diff] [blame] | 159 | # verifying the user Id in the list |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 160 | missing_users =\ |
| 161 | [user for user in user_ids if user not in fetched_user_ids] |
| 162 | self.assertEqual(0, len(missing_users), |
Zhongyue Luo | e0884a3 | 2012-09-25 17:24:17 +0800 | [diff] [blame] | 163 | "Failed to find user %s in fetched list" % |
| 164 | ', '.join(m_user for m_user in missing_users)) |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 165 | |
Masayuki Igawa | ba7bcf6 | 2014-02-17 14:56:41 +0900 | [diff] [blame] | 166 | @test.attr(type='gate') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 167 | @test.idempotent_id('a8b54974-40e1-41c0-b812-50fc90827971') |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 168 | def test_list_users_with_roles_for_tenant(self): |
Sean Dague | 46c4a2b | 2013-01-03 17:54:17 -0500 | [diff] [blame] | 169 | # Return list of users on tenant when roles are assigned to users |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 170 | self.data.setup_test_user() |
| 171 | self.data.setup_test_role() |
| 172 | user = self.get_user_by_name(self.data.test_user) |
| 173 | tenant = self.get_tenant_by_name(self.data.test_tenant) |
| 174 | role = self.get_role_by_name(self.data.test_role) |
Attila Fazekas | f7f34f9 | 2013-08-01 17:01:44 +0200 | [diff] [blame] | 175 | # Assigning roles to two users |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 176 | user_ids = list() |
| 177 | fetched_user_ids = list() |
| 178 | user_ids.append(user['id']) |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 179 | role = self.client.assign_user_role(tenant['id'], user['id'], |
| 180 | role['id']) |
Adalberto Medeiros | 081464b | 2013-08-16 09:41:29 -0400 | [diff] [blame] | 181 | |
Masayuki Igawa | a2ccca0 | 2013-09-17 15:32:46 +0900 | [diff] [blame] | 182 | alt_user2 = data_utils.rand_name('second_user_') |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 183 | second_user = self.client.create_user(alt_user2, 'password1', |
| 184 | self.data.tenant['id'], |
| 185 | 'user2@123') |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 186 | user_ids.append(second_user['id']) |
| 187 | self.data.users.append(second_user) |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 188 | role = self.client.assign_user_role(tenant['id'], |
| 189 | second_user['id'], |
| 190 | role['id']) |
Attila Fazekas | f7f34f9 | 2013-08-01 17:01:44 +0200 | [diff] [blame] | 191 | # List of users with roles for the respective tenant ID |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 192 | body = self.client.list_users_for_tenant(self.data.tenant['id']) |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 193 | for i in body: |
| 194 | fetched_user_ids.append(i['id']) |
Attila Fazekas | f7f34f9 | 2013-08-01 17:01:44 +0200 | [diff] [blame] | 195 | # verifying the user Id in the list |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 196 | missing_users = [missing_user for missing_user in user_ids |
| 197 | if missing_user not in fetched_user_ids] |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 198 | self.assertEqual(0, len(missing_users), |
Zhongyue Luo | e0884a3 | 2012-09-25 17:24:17 +0800 | [diff] [blame] | 199 | "Failed to find user %s in fetched list" % |
| 200 | ', '.join(m_user for m_user in missing_users)) |
rajalakshmi-ganesan | efc8bd7 | 2012-05-30 17:52:11 +0530 | [diff] [blame] | 201 | |
Abhijeet.Jain | ff5c354 | 2014-05-06 16:07:30 +0530 | [diff] [blame] | 202 | @test.attr(type='smoke') |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 203 | @test.idempotent_id('1aeb25ac-6ec5-4d8b-97cb-7ac3567a989f') |
Abhijeet.Jain | ff5c354 | 2014-05-06 16:07:30 +0530 | [diff] [blame] | 204 | def test_update_user_password(self): |
| 205 | # Test case to check if updating of user password is successful. |
| 206 | self.data.setup_test_user() |
| 207 | # Updating the user with new password |
| 208 | new_pass = data_utils.rand_name('pass-') |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 209 | update_user = self.client.update_user_password( |
Abhijeet.Jain | ff5c354 | 2014-05-06 16:07:30 +0530 | [diff] [blame] | 210 | self.data.user['id'], new_pass) |
Abhijeet.Jain | ff5c354 | 2014-05-06 16:07:30 +0530 | [diff] [blame] | 211 | self.assertEqual(update_user['id'], self.data.user['id']) |
| 212 | |
| 213 | # Validate the updated password |
| 214 | # Get a token |
David Kranz | b7afa92 | 2014-12-30 10:56:26 -0500 | [diff] [blame] | 215 | body = self.token_client.auth(self.data.test_user, new_pass, |
| 216 | self.data.test_tenant) |
Abhijeet.Jain | ff5c354 | 2014-05-06 16:07:30 +0530 | [diff] [blame] | 217 | self.assertTrue('id' in body['token']) |