CLOUDSTACK-3060: condition for vmware while getting process status.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Gaurav Aradhye 2013-06-20 00:27:29 -04:00 committed by Prasanna Santhanam
parent 09626337ab
commit 1fc7aeaaea

View File

@ -180,6 +180,17 @@ class TestRouterServices(cloudstackTestCase):
"Check list router response for router state"
)
if self.apiclient.hypervisor.lower() == 'vmware':
result = get_process_status(
self.apiclient.connection.mgtSvr,
22,
self.apiclient.connection.user,
self.apiclient.connection.passwd,
router.linklocalip,
"service dnsmasq status",
hypervisor=self.apiclient.hypervisor
)
else:
result = get_process_status(
host.ipaddress,
self.services['virtual_machine']["publicport"],
@ -242,6 +253,17 @@ class TestRouterServices(cloudstackTestCase):
"Check list router response for router state"
)
if self.apiclient.hypervisor.lower() == 'vmware':
result = get_process_status(
self.apiclient.connection.mgtSvr,
22,
self.apiclient.connection.user,
self.apiclient.connection.passwd,
router.linklocalip,
"service dnsmasq status",
hypervisor=self.apiclient.hypervisor
)
else:
result = get_process_status(
host.ipaddress,
self.services['virtual_machine']["publicport"],
@ -259,6 +281,17 @@ class TestRouterServices(cloudstackTestCase):
"Check dnsmasq service is running or not"
)
if self.apiclient.hypervisor.lower() == 'vmware':
result = get_process_status(
self.apiclient.connection.mgtSvr,
22,
self.apiclient.connection.user,
self.apiclient.connection.passwd,
router.linklocalip,
"service haproxy status",
hypervisor=self.apiclient.hypervisor
)
else:
result = get_process_status(
host.ipaddress,
self.services['virtual_machine']["publicport"],
@ -423,6 +456,17 @@ class TestRouterServices(cloudstackTestCase):
)
host = hosts[0]
if self.apiclient.hypervisor.lower() == 'vmware':
res = get_process_status(
self.apiclient.connection.mgtSvr,
22,
self.apiclient.connection.user,
self.apiclient.connection.passwd,
router.linklocalip,
"uptime",
hypervisor=self.apiclient.hypervisor
)
else:
res = get_process_status(
host.ipaddress,
self.services['virtual_machine']["publicport"],