Exemplo n.º 1
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientUtils, self).setUp()
     self.retry_count = 0
     self.retry_pass = None
     self.original_deleted_method = self.rest_client.is_resource_deleted
     self.rest_client.is_resource_deleted = self._is_resource_deleted
Exemplo n.º 2
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientUtils, self).setUp()
     self.retry_count = 0
     self.retry_pass = None
     self.original_deleted_method = self.rest_client.is_resource_deleted
     self.rest_client.is_resource_deleted = self._is_resource_deleted
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 def setUp(self):
     super(TestTokenClientV2, self).setUp()
     self.fake_200_http = fake_http.fake_httplib2(return_type=200)
Exemplo n.º 6
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2(404)
     super(TestRestClientNotFoundHandling, self).setUp()
Exemplo n.º 7
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestExpectedSuccess, self).setUp()
Exemplo n.º 8
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientHTTPMethods, self).setUp()
     self.useFixture(mockpatch.PatchObject(self.rest_client,
                                           '_error_checker'))
Exemplo n.º 9
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientParseRespJSON, self).setUp()
     self.rest_client.TYPE = self.TYPE
Exemplo n.º 10
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientUpdateHeaders, self).setUp()
     self.useFixture(mockpatch.PatchObject(self.rest_client,
                                           '_error_checker'))
     self.headers = {'X-Configuration-Session': 'session_id'}
Exemplo n.º 11
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2(404)
     super(TestRestClientNotFoundHandling, self).setUp()
Exemplo n.º 12
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestExpectedSuccess, self).setUp()
Exemplo n.º 13
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientHTTPMethods, self).setUp()
     self.useFixture(
         mockpatch.PatchObject(self.rest_client, '_error_checker'))
Exemplo n.º 14
0
 def setUp(self):
     super(BaseAuthTestsSetUp, self).setUp()
     self.fake_http = fake_http.fake_httplib2(return_type=200)
     self.stubs.Set(auth, 'get_credentials', fake_get_credentials)
     self.auth_provider = self._auth(self.credentials,
                                     fake_identity.FAKE_AUTH_URL)
Exemplo n.º 15
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientParseRespJSON, self).setUp()
     self.rest_client.TYPE = self.TYPE
 def setUp(self):
     super(TestTokenClientV2, self).setUp()
     self.fake_200_http = fake_http.fake_httplib2(return_type=200)
Exemplo n.º 17
0
 def setUp(self):
     self.fake_http = fake_http.fake_httplib2()
     super(TestRestClientUpdateHeaders, self).setUp()
     self.useFixture(
         mockpatch.PatchObject(self.rest_client, '_error_checker'))
     self.headers = {'X-Configuration-Session': 'session_id'}