Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions test/integration/component/test_VirtualRouter_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,23 +187,24 @@ def test_01_VRServiceFailureAlerting(self):
self.debug("apache process status: %s" % res)

configs = Configurations.list(
self.apiclient,
name='router.alerts.check.interval'
)
self.apiclient,
name='router.alerts.check.interval'
)

# Set the value for one more minute than
# actual range to be on safer side
waitingPeriod = (
int(configs[0].value) + 600) # in seconds
int(configs[0].value) + 60) # in seconds

time.sleep(waitingPeriod)
# wait for (router.alerts.check.interval + 10) minutes meanwhile monitor service on
# VR starts the apache service (
# wait for (router.alerts.check.interval + 10) minutes meanwhile
# monitor service on VR starts the apache service (
# router.alerts.check.interval default value is
# 30minutes)

qresultset = self.dbclient.execute(
"select id from alert where subject = '%s' ORDER BY id DESC LIMIT 1;" %
"select id from alert where subject \
= '%s' ORDER BY id DESC LIMIT 1;" %
str(alertSubject))
self.assertNotEqual(
len(qresultset),
Expand Down