Beispiel #1
0
 def test_prune_kibana_empty(self):
     l = [
         ".kibana",
         ".marvel-kibana",
         "kibana-int",
     ]
     r = []
     self.assertEqual(r, curator.prune_kibana(l))
 def test_prune_kibana_negative(self):
     l = [
         "logstash-2015.02.25", "logstash-2015.02.24", ".marvel-2015.02.25",
         ".marvel-2015.02.24",
         ]
     r = [
         "logstash-2015.02.25", "logstash-2015.02.24", ".marvel-2015.02.25",
         ".marvel-2015.02.24",
         ]
     self.assertEqual(r, curator.prune_kibana(l))
 def test_prune_kibana_positive(self):
     l = [
         "logstash-2015.02.25", "logstash-2015.02.24", ".kibana",
         ".marvel-kibana", "kibana-int", ".marvel-2015.02.25",
         ".marvel-2015.02.24",
         ]
     r = [
         "logstash-2015.02.25", "logstash-2015.02.24", ".marvel-2015.02.25",
         ".marvel-2015.02.24",
         ]
     self.assertEqual(r, curator.prune_kibana(l))
Beispiel #4
0
 def test_prune_kibana_negative(self):
     l = [
         "logstash-2015.02.25",
         "logstash-2015.02.24",
         ".marvel-2015.02.25",
         ".marvel-2015.02.24",
     ]
     r = [
         "logstash-2015.02.25",
         "logstash-2015.02.24",
         ".marvel-2015.02.25",
         ".marvel-2015.02.24",
     ]
     self.assertEqual(r, curator.prune_kibana(l))
Beispiel #5
0
 def test_prune_kibana_positive(self):
     l = [
         "logstash-2015.02.25",
         "logstash-2015.02.24",
         ".kibana",
         ".marvel-kibana",
         "kibana-int",
         ".marvel-2015.02.25",
         ".marvel-2015.02.24",
     ]
     r = [
         "logstash-2015.02.25",
         "logstash-2015.02.24",
         ".marvel-2015.02.25",
         ".marvel-2015.02.24",
     ]
     self.assertEqual(r, curator.prune_kibana(l))
 def test_prune_kibana_empty(self):
     l = [ ".kibana", ".marvel-kibana", "kibana-int", ]
     r = []
     self.assertEqual(r, curator.prune_kibana(l))