"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/application_credential/test_backends.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.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 "Ussuri" series (latest release).

test_backends.py  (keystone-16.0.1):test_backends.py  (keystone-17.0.0)
skipping to change at line 244 skipping to change at line 244
# the cache information has been invalidated. # the cache information has been invalidated.
self.assertRaises(exception.ApplicationCredentialNotFound, self.assertRaises(exception.ApplicationCredentialNotFound,
self.app_cred_api.get_application_credential, self.app_cred_api.get_application_credential,
app_cred_1['id']) app_cred_1['id'])
self.assertRaises(exception.ApplicationCredentialNotFound, self.assertRaises(exception.ApplicationCredentialNotFound,
self.app_cred_api.get_application_credential, self.app_cred_api.get_application_credential,
app_cred_2['id']) app_cred_2['id'])
def test_removing_user_from_project_deletes_application_credentials(self): def test_removing_user_from_project_deletes_application_credentials(self):
app_cred_proj_A_1 = self._new_app_cred_data( app_cred_proj_A_1 = self._new_app_cred_data(
self.user_foo['id'], project_id=self.project_bar['id'], name='app1') self.user_foo['id'], project_id=self.project_bar['id'],
name='app1')
app_cred_proj_A_2 = self._new_app_cred_data( app_cred_proj_A_2 = self._new_app_cred_data(
self.user_foo['id'], project_id=self.project_bar['id'], name='app2') self.user_foo['id'], project_id=self.project_bar['id'],
name='app2')
app_cred_proj_B = self._new_app_cred_data( app_cred_proj_B = self._new_app_cred_data(
self.user_foo['id'], project_id=self.project_baz['id'], name='app3') self.user_foo['id'], project_id=self.project_baz['id'],
name='app3')
PROVIDERS.assignment_api.add_role_to_user_and_project( PROVIDERS.assignment_api.add_role_to_user_and_project(
project_id=self.project_baz['id'], project_id=self.project_baz['id'],
user_id=self.user_foo['id'], user_id=self.user_foo['id'],
role_id=self.role__member_['id']) role_id=self.role__member_['id'])
self.app_cred_api.create_application_credential(app_cred_proj_A_1) self.app_cred_api.create_application_credential(app_cred_proj_A_1)
self.app_cred_api.create_application_credential(app_cred_proj_A_2) self.app_cred_api.create_application_credential(app_cred_proj_A_2)
self.app_cred_api.create_application_credential(app_cred_proj_B) self.app_cred_api.create_application_credential(app_cred_proj_B)
self.assertIn(app_cred_proj_A_1['id'], self._list_ids(self.user_foo)) self.assertIn(app_cred_proj_A_1['id'], self._list_ids(self.user_foo))
self.assertIn(app_cred_proj_A_2['id'], self._list_ids(self.user_foo)) self.assertIn(app_cred_proj_A_2['id'], self._list_ids(self.user_foo))
self.assertIn(app_cred_proj_B['id'], self._list_ids(self.user_foo)) self.assertIn(app_cred_proj_B['id'], self._list_ids(self.user_foo))
 End of changes. 3 change blocks. 
3 lines changed or deleted 6 lines changed or added

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