Example #1
0
 def test_get_extension_client(self):
     creds = credentials_factory.get_credentials(
         fill_in=False, username='******', project_name='fake_project',
         password='******')
     os = clients.Manager(creds)
     for service in ['nova', 'neutron', 'swift', 'cinder']:
         extensions_client = verify_tempest_config.get_extension_client(
             os, service)
         self.assertIsInstance(extensions_client, rest_client.RestClient)
 def test_get_extension_client(self):
     creds = credentials_factory.get_credentials(
         fill_in=False, username='******', project_name='fake_project',
         password='******')
     os = clients.Manager(creds)
     for service in ['nova', 'neutron', 'swift', 'cinder']:
         extensions_client = verify_tempest_config.get_extension_client(
             os, service)
         self.assertIsInstance(extensions_client, rest_client.RestClient)
Example #3
0
 def test_get_extension_client(self):
     fake_os = mock.MagicMock()
     services = {
         'nova': fake_os.compute.ExtensionsClient(),
         'neutron': fake_os.network.ExtensionsClient(),
         'swift': fake_os.object_storage.CapabilitiesClient(),
         'cinder': fake_os.volume_v2.ExtensionsClient(),
     }
     for service in services.keys():
         extensions_client = verify_tempest_config.get_extension_client(
             fake_os, service)
         self.assertIsInstance(extensions_client, mock.MagicMock)
         self.assertEqual(extensions_client, services[service])