Browse Source

Update alarms count tests

Updates alarms count test for multiple metric dimension values.

Change-Id: Idd2b5b66700a3c1234b22fad98020e31369f60f3
Story: 2005311
Task: 30278
Ethan Apodaca 2 weeks ago
parent
commit
46a97d9c52

+ 10
- 0
monasca_tempest_tests/tests/api/test_alarms_count.py View File

@@ -276,6 +276,16 @@ class TestAlarmsCount(base.BaseMonascaTest):
276 276
     def test_filter_multiple_dimensions(self):
277 277
         self.run_count_test("?metric_dimensions=hostname:test_1,unique:1")
278 278
 
279
+    # test with multiple metric dimensions values
280
+    @decorators.attr(type='gate')
281
+    def test_filter_multiple_dimensions_values_1(self):
282
+        self.run_count_test("?metric_dimensions=hostname:test_1|test_2,unique:1")
283
+
284
+    # test with multiple metric dimensions values (order should not matter)
285
+    @decorators.attr(type='gate')
286
+    def test_filter_multiple_dimensions_values_2(self):
287
+        self.run_count_test("?metric_dimensions=hostname:test_2|test_1,unique:1")
288
+
279 289
     # test with filter and group_by parameters
280 290
     @decorators.attr(type='gate')
281 291
     def test_filter_and_group_by_params(self):

+ 5
- 0
releasenotes/notes/story-2005311-bc67654cb58c9562.yaml View File

@@ -0,0 +1,5 @@
1
+---
2
+other:
3
+  - |
4
+    Update alarms count tests to test a query string with multiple
5
+    metric_dimension values.

Loading…
Cancel
Save