From 5eecba06f3173ec8d163e34bff287a2b09e5829c Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Thu, 28 Mar 2019 13:17:14 +0000 Subject: Initiate a thread to handle registry To prevent the registry API timeout by offloading the time-consuming registry to a thread Change-Id: I1107bb7f3d9a11bdae4d0a5926f788bc2a534bda Issue-ID: MULTICLOUD-554 Signed-off-by: Bin Yang --- windriver/titanium_cloud/registration/tests/test_registration2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'windriver/titanium_cloud/registration/tests') diff --git a/windriver/titanium_cloud/registration/tests/test_registration2.py b/windriver/titanium_cloud/registration/tests/test_registration2.py index 840f982f..495b2126 100644 --- a/windriver/titanium_cloud/registration/tests/test_registration2.py +++ b/windriver/titanium_cloud/registration/tests/test_registration2.py @@ -87,8 +87,8 @@ class TestRegistration2(unittest.TestCase): ["get"], {"get": { "content": MOCK_GET_FLAVOR_RESPONSE}}), - resp = self.view._discover_flavors(vimid="windriver-hudson-dc_RegionOne", - session=mock_session, viminfo=MOCK_VIM_INFO) + resp = self.view.register_helper._discover_flavors(vimid="windriver-hudson-dc_RegionOne", + session=mock_session, viminfo=MOCK_VIM_INFO) self.assertIsNone(resp) @@ -102,7 +102,7 @@ class TestRegistration2(unittest.TestCase): "content": MOCK_GET_FLAVOR_EXTRASPECS_RESPONSE_w_hpa_numa} ]}), - resp = self.view._discover_flavors(vimid="windriver-hudson-dc_RegionOne", - session=mock_session, viminfo=MOCK_VIM_INFO) + resp = self.view.register_helper._discover_flavors(vimid="windriver-hudson-dc_RegionOne", + session=mock_session, viminfo=MOCK_VIM_INFO) self.assertIsNone(resp) -- cgit 1.2.3-korg