def setUp(self): super(TestBareMetalNodesClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.baremetal_nodes_client = (baremetal_nodes_client. BaremetalNodesClient (fake_auth, 'compute', 'regionOne'))
def setUp(self): super(BaseRestClientTestClass, self).setUp() self.rest_client = rest_client.RestClient( fake_auth_provider.FakeAuthProvider(), None, None) self.stubs.Set(httplib2.Http, 'request', self.fake_http.request) self.useFixture(mockpatch.PatchObject(self.rest_client, '_log_request'))
def setUp(self): super(TestHostsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = hosts_client.HostsClient(fake_auth, 'compute', 'regionOne') self.params = {'hostname': self.HOST_ID} self.func2mock = { 'get': 'tempest_lib.common.rest_client.RestClient.get', 'put': 'tempest_lib.common.rest_client.RestClient.put'}
def setUp(self): self.fake_http = fake_http.fake_httplib2() super(TestProperties, self).setUp() creds_dict = { 'username': '******', 'user_id': 'test-user_id', 'tenant_name': 'test-tenant_name', 'tenant_id': 'test-tenant_id', 'password': '******' } self.rest_client = rest_client.RestClient( fake_auth_provider.FakeAuthProvider(creds_dict=creds_dict), None, None)
def setUp(self): super(TestServersClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = servers_client.ServersClient(fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestTenantUsagesClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = tenant_usages_client.TenantUsagesClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestKeyPairsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = keypairs_client.KeyPairsClient(fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestLimitsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = limits_client.LimitsClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestMigrationsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.mg_client_obj = migrations_client.MigrationsClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestAvailabilityZoneClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = availability_zone_client.AvailabilityZoneClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestInstanceUsagesAuditLogClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = (instance_usage_audit_log_client. InstanceUsagesAuditLogClient(fake_auth, 'compute', 'regionOne'))
def setUp(self): super(TestAggregatesClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = aggregates_client.AggregatesClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestHypervisorClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = hypervisor_client.HypervisorClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestRestClientErrorCheckerJSON, self).setUp() self.rest_client = rest_client.RestClient( fake_auth_provider.FakeAuthProvider(), None, None)
def setUp(self): super(TestQuotasClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = quotas_client.QuotasClient(fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestSecurityGroupDefaultRulesClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = (security_group_default_rules_client. SecurityGroupDefaultRulesClient(fake_auth, 'compute', 'regionOne'))
def setUp(self): super(TestCertificatesClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = certificates_client.CertificatesClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestImagesClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = images_client.ImagesClient(fake_auth, "compute", "regionOne")
def setUp(self): super(TestNetworksClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = networks_client.NetworksClient(fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestVersionsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.versions_client = ( versions_client.VersionsClient (fake_auth, 'compute', 'regionOne'))
def setUp(self): super(TestFixedIPsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.fixedIPsClient = (fixed_ips_client.FixedIPsClient( fake_auth, 'compute', 'regionOne'))
def setUp(self): super(TestJSONSchemaValidationBase, self).setUp() self.fake_auth_provider = fake_auth_provider.FakeAuthProvider() self.rest_client = rest_client.RestClient(self.fake_auth_provider, None, None)
def setUp(self): super(TestFloatingIPsBulkClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = floating_ips_bulk_client.FloatingIPsBulkClient( fake_auth, 'compute', 'regionOne')
def setUp(self): super(TestExtensionsClient, self).setUp() fake_auth = fake_auth_provider.FakeAuthProvider() self.client = extensions_client.ExtensionsClient( fake_auth, 'compute', 'regionOne')