From 3a7ad467251e7f7beac88ff442e64b7729017460 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Wed, 27 May 2015 10:17:16 +0530 Subject: [PATCH] CLOUDSTACK-8514: test_haproxy.py - Verifying router state before validating network rules Signed-off-by: Gaurav Aradhye This closes #309 --- test/integration/component/test_haproxy.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/integration/component/test_haproxy.py b/test/integration/component/test_haproxy.py index f6c675b1666..25b169f6572 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(