Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

repair some tests (need skip_initial_broks)

  • Loading branch information...
commit 9b69858ccc74d6cab74e539e16ea873726c06066 1 parent 92c2344
@lausser lausser authored
View
3  test/test_livestatus.py
@@ -291,6 +291,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
self.nagios_path = None
@@ -2549,6 +2550,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
print "************* Overall Setup:", time.time() - start_setUp
@@ -3624,6 +3626,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
self.nagios_path = None
View
3  test/test_livestatus_db.py
@@ -98,6 +98,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
self.nagios_path = None
@@ -544,6 +545,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
print "************* Overall Setup:", time.time() - start_setUp
@@ -773,6 +775,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
print "************* Overall Setup:", time.time() - start_setUp
View
2  test/test_livestatus_mongodb.py
@@ -172,6 +172,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
self.nagios_path = None
@@ -273,6 +274,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
print "************* Overall Setup:", time.time() - start_setUp
View
1  test/test_livestatus_trigger.py
@@ -292,6 +292,7 @@ def setUp(self):
self.testid = str(os.getpid() + random.randint(1, 1000))
self.init_livestatus()
print "Cleaning old broks?"
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.update_broker()
self.nagios_path = None
View
2  test/test_module_status_dat.py
@@ -68,6 +68,7 @@ def test_simplelog(self):
#Hack here :(
sl.properties = {}
sl.properties['to_queue'] = None
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
print self.sched.broks
sl.init()
@@ -110,6 +111,7 @@ def test_simplelog(self):
#now check if after a resend we still got the good number
self.sched.broks.clear()
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
#And in the good order!!!
b_ids = self.sched.broks.keys()
View
2  test/test_regenerator.py
@@ -94,6 +94,7 @@ def test_regenerator(self):
#
#for h in self.sched.hosts:
# h.realm = h.realm.get_name()
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
self.rg = Regenerator()
@@ -200,6 +201,7 @@ def test_regenerator_load_from_scheduler(self):
self.rg = Regenerator()
self.rg.load_from_scheduler(self.sched)
+ self.sched.conf.skip_initial_broks = False
self.sched.fill_initial_broks()
# Got the initial creation ones
ids = self.sched.broks.keys()
Please sign in to comment.
Something went wrong with that request. Please try again.