Fix gnocchiclient creation
Gnocchiclient uses keystoneauth1.adapter so that adapter_options need to be given. This patch fixes gnocchiclient creation. Change-Id: I6b5d8ee775929f4b3fd30be3321b378d19085547 Closes-Bug: #1714871
This commit is contained in:
@@ -190,7 +190,8 @@ class TestClients(base.TestCase):
|
||||
osc.gnocchi()
|
||||
mock_call.assert_called_once_with(
|
||||
CONF.gnocchi_client.api_version,
|
||||
interface=CONF.gnocchi_client.endpoint_type,
|
||||
adapter_options={
|
||||
"interface": CONF.gnocchi_client.endpoint_type},
|
||||
session=mock_session)
|
||||
|
||||
@mock.patch.object(clients.OpenStackClients, 'session')
|
||||
|
||||
Reference in New Issue
Block a user