From 487832ed13610a00b6449aedc782f80a7b632e33 Mon Sep 17 00:00:00 2001 From: jiaopengju Date: Sun, 8 Sep 2019 15:52:13 +0800 Subject: [PATCH] Fix unit tests failed Currently, zuul test job always failed, it is because the attribute in SessionClient of nova client has been removed and use endpoint_override instead, this patch will fix it. Change-Id: I3101d829ee4382d95acbdc6b756de2b8619b254f --- karbor/tests/unit/plugins/test_network_protectable_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karbor/tests/unit/plugins/test_network_protectable_plugin.py b/karbor/tests/unit/plugins/test_network_protectable_plugin.py index 60e9df54..d28b4c9a 100644 --- a/karbor/tests/unit/plugins/test_network_protectable_plugin.py +++ b/karbor/tests/unit/plugins/test_network_protectable_plugin.py @@ -82,7 +82,7 @@ class NetworkProtectablePluginTest(base.TestCase): self.assertEqual('http://127.0.0.1:9696', neutronclient.httpclient.endpoint_url) self.assertEqual('http://127.0.0.1:8774/v2.1/abcd', - novaclient.client.management_url) + novaclient.client.endpoint_override) @mock.patch('karbor.services.protection.client_factory.ClientFactory.' '_generate_session') @@ -101,7 +101,7 @@ class NetworkProtectablePluginTest(base.TestCase): self.assertEqual('http://127.0.0.1:9696', neutronclient.httpclient.endpoint_url) self.assertEqual('http://127.0.0.1:8774/v2.1/abcd', - novaclient.client.management_url) + novaclient.client.endpoint_override) def test_get_resource_type(self): plugin = NetworkProtectablePlugin(self._context)