summaryrefslogtreecommitdiffstats
path: root/tests/test_sql_upgrade.py
diff options
context:
space:
mode:
authorHenry Nash <henryn@linux.vnet.ibm.com>2012-12-13 16:48:13 +0000
committerHenry Nash <henryn@linux.vnet.ibm.com>2013-01-08 01:32:46 +0000
commit4fae928c59beaa558306a5aa3a3aa5c6f4945b70 (patch)
tree86fa2896027f9278ed022886806b93fc98a2bebb /tests/test_sql_upgrade.py
parent9460ff5c35809f4911cb5a1ee5f68d6351e797f4 (diff)
downloadkeystone-4fae928c59beaa558306a5aa3a3aa5c6f4945b70.tar.gz
keystone-4fae928c59beaa558306a5aa3a3aa5c6f4945b70.tar.xz
keystone-4fae928c59beaa558306a5aa3a3aa5c6f4945b70.zip
Keystone server support for user groups
This implements the server side of groups of users. This set of code provides all the crud functionality for groups as well as the corresponding support for role assignments. blueprint user-groups The following deficiencies existing with the current version and will be corrected ahead of the final Grizzly release: 1) There is only placeholder support for LDAP (Bug #1092187) 2) Domain role grants are accepted but not yet honored (Bug #1093248) 3) Token invalidation does not occur with group changes (Bug #1093493) This update also fills in missing v3 grant unit testing and v3 grant support within the kvs backend. In addition, there is a fix for Bug #1092200 (uncaught exception when listing grants) DocImpact Change-Id: Ibd1783b04b2d7804eff90312e5ef591dca4d0695
Diffstat (limited to 'tests/test_sql_upgrade.py')
-rw-r--r--tests/test_sql_upgrade.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/test_sql_upgrade.py b/tests/test_sql_upgrade.py
index 9dcaaeff..ad4b7b06 100644
--- a/tests/test_sql_upgrade.py
+++ b/tests/test_sql_upgrade.py
@@ -176,6 +176,22 @@ class SqlUpgradeTests(test.TestCase):
self.assertEqual(ref.url, endpoint_extra['%surl' % interface])
self.assertEqual(ref.extra, '{}')
+ def test_upgrade_12_to_13(self):
+ self.upgrade(12)
+ self.upgrade(13)
+ self.assertTableExists('group')
+ self.assertTableExists('group_project_metadata')
+ self.assertTableExists('group_domain_metadata')
+ self.assertTableExists('user_group_membership')
+
+ def test_downgrade_13_to_12(self):
+ self.upgrade(13)
+ self.downgrade(12)
+ self.assertTableDoesNotExist('group')
+ self.assertTableDoesNotExist('group_project_metadata')
+ self.assertTableDoesNotExist('group_domain_metadata')
+ self.assertTableDoesNotExist('user_group_membership')
+
def test_downgrade_12_to_9(self):
self.upgrade(12)
@@ -253,7 +269,7 @@ class SqlUpgradeTests(test.TestCase):
', '.join("'%s'" % v for v in d.values())))
def test_downgrade_to_0(self):
- self.upgrade(12)
+ self.upgrade(13)
self.downgrade(0)
for table_name in ["user", "token", "role", "user_tenant_membership",
"metadata"]: