Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test/integration/component/test_haproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
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


Expand Down Expand Up @@ -754,6 +756,11 @@ def test_08_create_policy_router_stopped(self):
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(
Expand Down