def test_total_stats(self): print("testing delete_caches, load_total_stats") dl = DataLogger("testdata") dl.setup("mysql", "performance", "2018-04-01") dl.delete_caches() total_stats = dl.load_total_stats() print(json.dumps(total_stats, indent=4))
def test_load_caches(self): print("testing delete_caches, get_caches") dl = DataLogger("testdata") dl.setup("mysql", "performance", "2018-04-01") dl.delete_caches() print(dl.get_caches()) tsa = dl.load_tsa() print(dl.get_caches())
def test_load_tsastats(self): print("testing delete_caches, load_tsastats") dl = DataLogger("testdata") dl.setup("sanportperf", "fcIfC3AccountingTable", "2018-04-01") dl.delete_caches() tsastats = dl.load_tsastats() #print(tsa) dl = DataLogger("testdata") dl.setup("mysql", "performance", "2018-04-01") dl.delete_caches() tsastats = dl.load_tsastats()
def test_generate_caches(self): print("testing generate_caches") dl = DataLogger("testdata") dl.setup("mysql", "performance", "2018-04-01") dl.delete_caches() cache = dl["caches"] assert not cache["ts"]["keys"] dl.generate_caches() dl = DataLogger("testdata") dl.setup("mysql", "performance", "2018-04-01") cache = dl["caches"] assert cache["ts"]["keys"]