Esempio n. 1
0
 def test_strip_ceilometer_network_floating(self):
     resource = self.generate_ceilometer_resource(CEIL_NETWORK_FLOATING)
     t_test = ceilometer.CeilometerTransformer()
     result = t_test.strip_resource_data('network_floating', resource)
     self.assertEqual(TRANS_NETWORK_FLOATING, result)
Esempio n. 2
0
 def test_strip_ceilometer_network_tap(self):
     resource = self.generate_ceilometer_resource(CEIL_NETWORK_TAP)
     t_test = ceilometer.CeilometerTransformer()
     result = t_test.strip_resource_data('network_tap', resource)
     self.assertEqual(TRANS_NETWORK_TAP, result)
Esempio n. 3
0
 def test_strip_ceilometer_volume(self):
     resource = self.generate_ceilometer_resource(CEIL_VOLUME)
     t_test = ceilometer.CeilometerTransformer()
     result = t_test.strip_resource_data('volume', resource)
     self.assertEqual(TRANS_VOLUME, result)
Esempio n. 4
0
 def test_strip_ceilometer_image(self):
     resource = self.generate_ceilometer_resource(CEIL_IMAGE)
     t_test = ceilometer.CeilometerTransformer()
     result = t_test.strip_resource_data('image', resource)
     self.assertEqual(TRANS_IMAGE, result)
Esempio n. 5
0
 def test_strip_ceilometer_compute(self):
     resource = self.generate_ceilometer_resource(CEIL_COMPUTE)
     t_test = ceilometer.CeilometerTransformer()
     result = t_test.strip_resource_data('compute', resource)
     self.assertEqual(TRANS_COMPUTE, result)