You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ga...@apache.org on 2015/05/08 16:15:35 UTC
git commit: updated refs/heads/master to fcd74d5
Repository: cloudstack
Updated Branches:
refs/heads/master 8c929d58c -> fcd74d5fe
CLOUDSTACK-8453: Fix DB result check in test_VirtualRouter_alerts.py
Signed-off-by: Gaurav Aradhye <ga...@clogeny.com>
This closes #239
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/fcd74d5f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fcd74d5f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fcd74d5f
Branch: refs/heads/master
Commit: fcd74d5fefa890d6f39fa22a99a831bca04e7984
Parents: 8c929d5
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Fri May 8 19:39:37 2015 +0530
Committer: Gaurav Aradhye <ga...@clogeny.com>
Committed: Fri May 8 19:44:51 2015 +0530
----------------------------------------------------------------------
test/integration/component/test_VirtualRouter_alerts.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/fcd74d5f/test/integration/component/test_VirtualRouter_alerts.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_VirtualRouter_alerts.py b/test/integration/component/test_VirtualRouter_alerts.py
index bb3b129..64066f8 100644
--- a/test/integration/component/test_VirtualRouter_alerts.py
+++ b/test/integration/component/test_VirtualRouter_alerts.py
@@ -203,9 +203,9 @@ class TestVRServiceFailureAlerting(cloudstackTestCase):
# 30minutes)
qresultset = self.dbclient.execute(
- "select id from alert where subject \
- = '%s' ORDER BY id DESC LIMIT 1;" %
- str(alertSubject))
+ "select id from alert where subject like\
+ '%{0}%' ORDER BY id DESC LIMIT 1;".format(
+ str(alertSubject)))
self.assertNotEqual(
len(qresultset),
0,