"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/common/test_notifications.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_notifications.py  (keystone-16.0.1):test_notifications.py  (keystone-16.0.2)
skipping to change at line 797 skipping to change at line 797
user_id=user_ref['id'], user_id=user_ref['id'],
password=password) password=password)
self._assert_last_audit(None, 'authenticate', None, self._assert_last_audit(None, 'authenticate', None,
cadftaxonomy.ACCOUNT_USER, cadftaxonomy.ACCOUNT_USER,
reason=expected_reason) reason=expected_reason)
def test_locked_out_user_sends_notification(self): def test_locked_out_user_sends_notification(self):
password = uuid.uuid4().hex password = uuid.uuid4().hex
new_password = uuid.uuid4().hex new_password = uuid.uuid4().hex
expected_responses = [AssertionError, AssertionError, AssertionError, expected_responses = [AssertionError, AssertionError, AssertionError,
exception.AccountLocked] exception.Unauthorized]
user_ref = unit.new_user_ref(domain_id=self.domain_id, user_ref = unit.new_user_ref(domain_id=self.domain_id,
password=password) password=password)
user_ref = PROVIDERS.identity_api.create_user(user_ref) user_ref = PROVIDERS.identity_api.create_user(user_ref)
reason_type = (exception.AccountLocked.message_format % reason_type = (exception.AccountLocked.message_format %
{'user_id': user_ref['id']}) {'user_id': user_ref['id']})
expected_reason = {'reasonCode': '401', expected_reason = {'reasonCode': '401',
'reasonType': reason_type} 'reasonType': reason_type}
for ex in expected_responses: for ex in expected_responses:
with self.make_request(): with self.make_request():
self.assertRaises(ex, self.assertRaises(ex,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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