diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-03-28 13:17:14 +0000 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2019-04-01 07:51:54 +0000 |
commit | 5eecba06f3173ec8d163e34bff287a2b09e5829c (patch) | |
tree | 8ba662a324361b45d7f10b672182da97b815d4a3 /lenovo/thinkcloud/registration/tests | |
parent | 59edc5d9b0f578e0b799c0350b39a08f9b040ab3 (diff) |
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 <bin.yang@windriver.com>
Diffstat (limited to 'lenovo/thinkcloud/registration/tests')
-rw-r--r-- | lenovo/thinkcloud/registration/tests/test_registration2.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lenovo/thinkcloud/registration/tests/test_registration2.py b/lenovo/thinkcloud/registration/tests/test_registration2.py index d799c90a..7abd6073 100644 --- a/lenovo/thinkcloud/registration/tests/test_registration2.py +++ b/lenovo/thinkcloud/registration/tests/test_registration2.py @@ -92,8 +92,10 @@ class TestRegistration2(unittest.TestCase): } ) - resp = self.view._discover_flavors(vimid="lenovo-hudson-dc_RegionOne", - session=mock_session, viminfo=MOCK_VIM_INFO) + resp = self.view.register_helper._discover_flavors( + vimid="lenovo-hudson-dc_RegionOne", + session=mock_session, viminfo=MOCK_VIM_INFO + ) self.assertIsNone(resp) @@ -110,7 +112,9 @@ class TestRegistration2(unittest.TestCase): } ), - resp = self.view._discover_flavors(vimid="lenovo-hudson-dc_RegionOne", - session=mock_session, viminfo=MOCK_VIM_INFO) + resp = self.view.register_helper._discover_flavors( + vimid="lenovo-hudson-dc_RegionOne", + session=mock_session, viminfo=MOCK_VIM_INFO + ) self.assertIsNone(resp) |