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:
Hidekazu Nakamura
2017-09-04 14:52:11 +09:00
parent c9a43d8da4
commit a2fa13c8ff
2 changed files with 7 additions and 2 deletions

View File

@@ -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')