cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gau...@apache.org
Subject git commit: updated refs/heads/master to fcd74d5
Date Fri, 08 May 2015 14:15:35 GMT
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 <gaurav.aradhye@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 <gaurav.aradhye@clogeny.com>
Authored: Fri May 8 19:39:37 2015 +0530
Committer: Gaurav Aradhye <gaurav.aradhye@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,


Mime
View raw message