Use the neutron user on the message queue
Similar to neutron-gateway we can use the same user created on the message queue that neutron-api uses. This will avoid any potential permissions problems. Change-Id: I6a5c2f0f38f636db19e3c13af85a79fe5b570013
This commit is contained in:
parent
7be2ae2bd8
commit
dbee4e8b22
|
@ -52,7 +52,7 @@ def setup_amqp_req(amqp):
|
|||
"""Use the amqp interface to request access to the amqp broker using our
|
||||
local configuration.
|
||||
"""
|
||||
amqp.request_access(username='dragent',
|
||||
amqp.request_access(username='neutron',
|
||||
vhost='openstack')
|
||||
dragent.assess_status()
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ class TestDRAgentHandlers(unittest.TestCase):
|
|||
amqp = mock.MagicMock()
|
||||
handlers.setup_amqp_req(amqp)
|
||||
amqp.request_access.assert_called_once_with(
|
||||
username='dragent', vhost='openstack')
|
||||
username='neutron', vhost='openstack')
|
||||
|
||||
def test_render_configs(self):
|
||||
self.patch(handlers.dragent, 'render_configs')
|
||||
|
|
Loading…
Reference in New Issue