def _call_collect_all(self, store, collector_kwargs_map=None, collectors=None): if collector_kwargs_map is None: collector_kwargs_map = { 'ec2': { 'requests_impl': test_ec2.FakeRequests }, 'cfn': { 'requests_impl': test_cfn.FakeRequests(self) }, 'heat': { 'keystoneclient': test_heat.FakeKeystoneClient(self), 'heatclient': test_heat.FakeHeatClient(self), 'discover_class': test_heat.FakeKeystoneDiscover }, 'request': { 'requests_impl': test_request.FakeRequests }, 'zaqar': { 'keystoneclient': test_zaqar.FakeKeystoneClient(self), 'zaqarclient': test_zaqar.FakeZaqarClient(self), 'discover_class': test_heat.FakeKeystoneDiscover }, } if collectors is None: collectors = cfg.CONF.collectors with mock.patch.object(config_drive, 'get_metadata') as gm: gm.return_value = {} return collect.collect_all( collectors, store=store, collector_kwargs_map=collector_kwargs_map)
def _call_collect_all(self, store, requests_impl_map=None): if requests_impl_map is None: requests_impl_map = {'ec2': test_ec2.FakeRequests, 'cfn': test_cfn.FakeRequests(self)} return collect.collect_all( collect.COLLECTORS, store=store, requests_impl_map=requests_impl_map)
def _call_collect_all( self, store, requests_impl_map=None, collectors=None): if requests_impl_map is None: requests_impl_map = {'ec2': test_ec2.FakeRequests, 'cfn': test_cfn.FakeRequests(self)} if collectors is None: collectors = cfg.CONF.collectors return collect.collect_all( collectors, store=store, requests_impl_map=requests_impl_map)
def _call_collect_all( self, store, collector_kwargs_map=None, collectors=None): if collector_kwargs_map is None: collector_kwargs_map = { 'ec2': {'requests_impl': test_ec2.FakeRequests}, 'cfn': {'requests_impl': test_cfn.FakeRequests(self)}, 'heat': { 'keystoneclient': test_heat.FakeKeystoneClient(self), 'heatclient': test_heat.FakeHeatClient(self) } } if collectors is None: collectors = cfg.CONF.collectors return collect.collect_all( collectors, store=store, collector_kwargs_map=collector_kwargs_map)
def _call_collect_all(self, mock_url_for, mock___init__, store, collector_kwargs_map=None, collectors=None): mock___init__.return_value = None mock_url_for.return_value = cfg.CONF.heat.auth_url if collector_kwargs_map is None: collector_kwargs_map = { 'ec2': {'requests_impl': test_ec2.FakeRequests}, 'cfn': {'requests_impl': test_cfn.FakeRequests(self)}, 'heat': { 'keystoneclient': test_heat.FakeKeystoneClient(self), 'heatclient': test_heat.FakeHeatClient(self) }, 'request': {'requests_impl': test_request.FakeRequests}, 'zaqar': { 'keystoneclient': test_zaqar.FakeKeystoneClient(self), 'zaqarclient': test_zaqar.FakeZaqarClient(self) }, } if collectors is None: collectors = cfg.CONF.collectors return collect.collect_all( collectors, store=store, collector_kwargs_map=collector_kwargs_map)