Exemplo n.º 1
0
 def test_get_query_found_in_two(self):
     paths = [
         'sp.*.blockCache.global.summary.dirtyBytes',
         'sp.*.platform.storageProcessorTemperature'
     ]
     queries = UnityMetricRealTimeQuery.get_query_list(t_rest(), 300, paths)
     assert_that(len(queries), equal_to(2))
Exemplo n.º 2
0
 def test_get_query_found_in_one(self):
     paths = [
         'sp.*.storage.lun.*.reads', 'sp.*.storage.lun.*.writes',
         'sp.*.blockCache.global.summary.dirtyBytes'
     ]
     queries = UnityMetricRealTimeQuery.get_query_list(t_rest(), 300, paths)
     assert_that(len(queries), equal_to(1))
     assert_that(queries[0].paths, has_items(*paths))
Exemplo n.º 3
0
    def test_get_query_create_one(self):
        paths = [
            'sp.*.blockCache.global.summary.dirtyBytes',
            'sp.*.platform.storageProcessorTemperature',
            'sp.*.store.scsiBusDevice.*.calls'
        ]

        queries = UnityMetricRealTimeQuery.get_query_list(t_rest(), 300, paths)
        assert_that(len(queries._id_list), equal_to(3))
Exemplo n.º 4
0
 def get_real_time_query_list():
     paths = calculators.get_all_paths(rsc_clz_list)
     return UnityMetricRealTimeQuery.get_query_list(self._cli,
                                                    interval,
                                                    paths=paths)