Esempio n. 1
0
 def setUp(self):
     super(ThresholdTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.ThresholdManager(self.api)
     self.resource = self.mgr.get(
         threshold_id=SERVICE_THRESHOLD1['threshold_id'])
Esempio n. 2
0
 def setUp(self):
     super(CloudkittyModuleManagerTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = cloudkittyclient.v1.core.CloudkittyModuleManager(self.api)
Esempio n. 3
0
 def setUp(self):
     super(GroupTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.GroupManager(self.api)
     self.resource = self.mgr.get(group_id=GROUP2['group_id'])
Esempio n. 4
0
 def setUp(self):
     super(GroupManagerTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.GroupManager(self.api)
Esempio n. 5
0
 def setUp(self):
     super(MappingTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.MappingManager(self.api)
     self.resource = self.mgr.get(mapping_id=FIELD_MAPPING1['mapping_id'])
Esempio n. 6
0
 def setUp(self):
     super(FieldTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.FieldManager(self.api)
     self.resource = self.mgr.get(field_id=FIELD1['field_id'])
Esempio n. 7
0
 def setUp(self):
     super(ServiceTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = hashmap.ServiceManager(self.api)
     self.resource = self.mgr.get(service_id=SERVICE3['service_id'])
Esempio n. 8
0
 def setUp(self):
     super(ReportSummaryManagerTest, self).setUp()
     self.http_client = fake_client.FakeHTTPClient(fixtures=fixtures)
     self.api = client.BaseClient(self.http_client)
     self.mgr = cloudkittyclient.v1.report.ReportSummaryManager(self.api)