Merge "Set initiators ID to user_id"

This commit is contained in:
Jenkins 2015-02-04 21:25:13 +00:00 committed by Gerrit Code Review
commit d4909becac
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ def _get_request_audit_info(context, user_id=None):
host = pycadf.host.Host(address=remote_addr, agent=http_user_agent)
initiator = resource.Resource(typeURI=taxonomy.ACCOUNT_USER,
name=user_id, host=host)
id=user_id, host=host)
return initiator

View File

@ -581,7 +581,7 @@ class CadfNotificationsWrapperTestCase(test_v3.RestfulTestCase):
note = self._notifications[-1]
self.assertEqual(note['action'], action)
initiator = note['initiator']
self.assertEqual(initiator.name, user_id)
self.assertEqual(initiator.id, user_id)
self.assertEqual(initiator.host.address, self.LOCAL_HOST)
self.assertTrue(note['send_notification_called'])