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/27 06:50:18 UTC
git commit: updated refs/heads/master to 3a7ad46
Repository: cloudstack
Updated Branches:
refs/heads/master 75463356f -> 3a7ad4672
CLOUDSTACK-8514: test_haproxy.py - Verifying router state before validating network rules
Signed-off-by: Gaurav Aradhye <ga...@clogeny.com>
This closes #309
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3a7ad467
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3a7ad467
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3a7ad467
Branch: refs/heads/master
Commit: 3a7ad467251e7f7beac88ff442e64b7729017460
Parents: 7546335
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Wed May 27 10:17:16 2015 +0530
Committer: Gaurav Aradhye <ga...@clogeny.com>
Committed: Wed May 27 10:19:51 2015 +0530
----------------------------------------------------------------------
test/integration/component/test_haproxy.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3a7ad467/test/integration/component/test_haproxy.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_haproxy.py b/test/integration/component/test_haproxy.py
index f6c675b..25b169f 100644
--- a/test/integration/component/test_haproxy.py
+++ b/test/integration/component/test_haproxy.py
@@ -36,8 +36,10 @@ from marvin.lib.common import (get_domain,
get_template
)
from marvin.lib.utils import (cleanup_resources,
- random_gen)
+ random_gen,
+ verifyRouterState)
from marvin.cloudstackAPI import createLBStickinessPolicy
+from marvin.codes import PASS
from marvin.sshClient import SshClient
@@ -754,6 +756,11 @@ class TestHAProxyStickyness(cloudstackTestCase):
self.debug("Starting the router: %s" % router.name)
Router.start(self.apiclient, id=router.id)
+ response = verifyRouterState(self.apiclient,
+ router.id,
+ "running")
+ self.assertEqual(response[0], PASS, response[1])
+
self.debug("Policy: %s" % str(policy))
self.debug("Validating the stickiness policy")
self.validate_Stickiness_Policy(