Updated openstack/openstack
Project: openstack/keystone  5a878b704aff1573b7c0b2ed32d5568706ddf952
null
Removes use of fake_notify and fixes notify test

The test against keystone.notifications._send_notification was badly
broken, and the stubbed fake_notify method was masking this issue.

The operation and resource parameters to _send_notification() were
mistakenly reversed in the test case's call to that method, but because
the fake_notify() method was not looking for the parameters in the right
way, the test was failing.

This patch removes the unnecessary use of mox stubout and replaces with
a simple call to mock.patch() and a follow-up assertion that the mocked
notify() call was being passed expected arguments.

Change-Id: I1f3e66c7b92e176520c7627151a02d4b35594aea
Blueprint: oslo-messaging
Updated openstack/openstack
Project: openstack/nova  0a6dc550cf1ba1643df2f043a527bd52916c678a
null
Merge same db calls for some quota methods

db.quota_get_all_by_project is called twice in method limit_check()
and reserve(),
db.quota_get_all_by_project_and_user is called twice in method
get_settable_quotas() in nova/quota.py

Change-Id: Ie5e3a414d3d52964c16613f44fe60a7f68bc0c66
Closes-bug: 1277068