Пример #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'])
Пример #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)
Пример #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'])
Пример #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)
Пример #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'])
Пример #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'])
Пример #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'])
Пример #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)