summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudkitty_tempest_plugin/services/client.py8
-rw-r--r--cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py12
2 files changed, 10 insertions, 10 deletions
diff --git a/cloudkitty_tempest_plugin/services/client.py b/cloudkitty_tempest_plugin/services/client.py
index 4fcbf81..a04e271 100644
--- a/cloudkitty_tempest_plugin/services/client.py
+++ b/cloudkitty_tempest_plugin/services/client.py
@@ -92,10 +92,10 @@ class RatingClient(rest_client.RestClient):
92 uri = '/info/config/' 92 uri = '/info/config/'
93 return self._do_request('GET', uri) 93 return self._do_request('GET', uri)
94 94
95 def get_service(self, service_name=None): 95 def get_metric(self, metric_name=None):
96 uri = '/info/services/' 96 uri = '/info/metrics/'
97 if service_name: 97 if metric_name:
98 uri += service_name + '/' 98 uri += metric_name + '/'
99 return self._do_request('GET', uri) 99 return self._do_request('GET', uri)
100 100
101 def get_rating_module(self, module_name=None): 101 def get_rating_module(self, module_name=None):
diff --git a/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py b/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py
index 6cd6760..ed0b125 100644
--- a/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py
+++ b/cloudkitty_tempest_plugin/tests/api/test_cloudkitty_api.py
@@ -134,13 +134,13 @@ class CloudkittyPrimaryAPITest(base.BaseRatingTest):
134 def test_get_config(self): 134 def test_get_config(self):
135 self.rating_client.get_config() 135 self.rating_client.get_config()
136 136
137 @decorators.idempotent_id('43b03099-0493-4291-9749-85cd8d512811') 137 # @decorators.idempotent_id('43b03099-0493-4291-9749-85cd8d512811')
138 def test_get_services(self): 138 # def test_get_metrics(self):
139 self.rating_client.get_service() 139 # self.rating_client.get_metric()
140 140
141 @decorators.idempotent_id('64ecae87-0138-41bd-829f-91302dae7802') 141 # @decorators.idempotent_id('64ecae87-0138-41bd-829f-91302dae7802')
142 def test_get_service(self): 142 # def test_get_metric(self):
143 self.rating_client.get_service('compute') 143 # self.rating_client.get_metric('cpu')
144 144
145 @decorators.idempotent_id('cccbff8a-24b2-4251-8f7b-ea941d048b9d') 145 @decorators.idempotent_id('cccbff8a-24b2-4251-8f7b-ea941d048b9d')
146 def test_report_summary(self): 146 def test_report_summary(self):