예제 #1
0
 def setUp(self):
     super(TestEndpointDiscovery, self).setUp()
     self.discovery = endpoint.EndpointDiscovery()
     self.manager = mock.MagicMock()
     self.CONF = self.useFixture(fixture_config.Config()).conf
     self.CONF.set_override('os_endpoint_type',
                            'test-endpoint-type',
                            group='service_credentials')
     self.CONF.set_override('os_region_name',
                            'test-region-name',
                            group='service_credentials')
예제 #2
0
 def setUp(self):
     super(TestEndpointDiscovery, self).setUp()
     self.discovery = endpoint.EndpointDiscovery()
     self.manager = mock.MagicMock()
     self.CONF = self.useFixture(fixture_config.Config()).conf
     self.CONF.set_override('interface', 'test-endpoint-type',
                            group='service_credentials')
     self.CONF.set_override('region_name', 'test-region-name',
                            group='service_credentials')
     self.catalog = (self.manager.keystone.session.auth.get_access.
                     return_value.service_catalog)
예제 #3
0
 def setUp(self):
     super(TestEndpointDiscovery, self).setUp()
     CONF = service.prepare_service([], [])
     CONF.set_override('interface',
                       'publicURL',
                       group='service_credentials')
     CONF.set_override('region_name',
                       'test-region-name',
                       group='service_credentials')
     self.discovery = endpoint.EndpointDiscovery(CONF)
     self.manager = mock.MagicMock()
     self.catalog = (self.manager.keystone.session.auth.get_access.
                     return_value.service_catalog)
예제 #4
0
 def setUp(self):
     super(TestEndpointDiscovery, self).setUp()
     self.discovery = endpoint.EndpointDiscovery()
     self.manager = mock.MagicMock()
     self.CONF = self.useFixture(fixture_config.Config()).conf