Merge "Initalize pool_executor so close works"
This commit is contained in:
commit
1ddca04a52
|
@ -356,6 +356,7 @@ class Connection(six.with_metaclass(_meta.ConnectionMeta,
|
|||
|
||||
self._session = None
|
||||
self._proxies = {}
|
||||
self.__pool_executor = None
|
||||
self.use_direct_get = use_direct_get
|
||||
self.strict_mode = strict
|
||||
# Call the _*CloudMixin constructors while we work on
|
||||
|
|
|
@ -62,6 +62,15 @@ class TestShade(base.TestCase):
|
|||
# keystoneauth1.loading.base.BaseLoader.load_from_options
|
||||
self.cloud.connect_as(project_name='test_project')
|
||||
|
||||
def test_connect_as_context(self):
|
||||
# Do initial auth/catalog steps
|
||||
# TODO(mordred) This only tests the constructor steps. Discovery
|
||||
# cache sharing is broken. We need to get discovery_cache option
|
||||
# plumbed through
|
||||
# keystoneauth1.loading.base.BaseLoader.load_from_options
|
||||
with self.cloud.connect_as(project_name='test_project'):
|
||||
pass
|
||||
|
||||
@mock.patch.object(connection.Connection, 'search_images')
|
||||
def test_get_images(self, mock_search):
|
||||
image1 = dict(id='123', name='mickey')
|
||||
|
|
Loading…
Reference in New Issue