CLOUDSTACK-8514: test_haproxy.py - Verifying router state before validating network rules

Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes #309
This commit is contained in:
Gaurav Aradhye 2015-05-27 10:17:16 +05:30
parent 75463356fb
commit 3a7ad46725
1 changed files with 8 additions and 1 deletions

View File

@ -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(