"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/assignment/test_backends.py" between
keystone-16.0.1.tar.gz and keystone-16.0.2.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Train" series (maintained release).

test_backends.py  (keystone-16.0.1):test_backends.py  (keystone-16.0.2)
skipping to change at line 4223 skipping to change at line 4223
group_ref = unit.new_group_ref(CONF.identity.default_domain_id) group_ref = unit.new_group_ref(CONF.identity.default_domain_id)
group_id = PROVIDERS.identity_api.create_group(group_ref)['id'] group_id = PROVIDERS.identity_api.create_group(group_ref)['id']
role = self._create_role(CONF.identity.default_domain_id) role = self._create_role(CONF.identity.default_domain_id)
self.assertRaises( self.assertRaises(
exception.ValidationError, exception.ValidationError,
PROVIDERS.assignment_api.create_system_grant_for_group, PROVIDERS.assignment_api.create_system_grant_for_group,
group_id, group_id,
role['id'] role['id']
) )
def test_delete_role_with_system_assignments(self):
role = unit.new_role_ref()
PROVIDERS.role_api.create_role(role['id'], role)
domain = unit.new_domain_ref()
PROVIDERS.resource_api.create_domain(domain['id'], domain)
user = unit.new_user_ref(domain_id=domain['id'])
user = PROVIDERS.identity_api.create_user(user)
# creating a system grant for user
PROVIDERS.assignment_api.create_system_grant_for_user(
user['id'], role['id']
)
# deleting the role user has on system
PROVIDERS.role_api.delete_role(role['id'])
system_roles = PROVIDERS.assignment_api.list_role_assignments(
role_id=role['id']
)
self.assertEqual(len(system_roles), 0)
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)