Beispiel #1
0
 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))
Beispiel #2
0
 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())
Beispiel #3
0
 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()
Beispiel #4
0
 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"]