CLOUDSTACK-2542: Fix router test for basic zone

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
SrikanteswaraRao Talluri 2013-05-16 17:29:12 +05:30 committed by Prasanna Santhanam
parent 55d304a5bb
commit 2867c6a6df

View File

@ -141,11 +141,17 @@ class TestRouterServices(cloudstackTestCase):
# by checking status of dnsmasq process # by checking status of dnsmasq process
# Find router associated with user account # Find router associated with user account
list_router_response = list_routers( if self.zone.networktype == "Basic":
self.apiclient, list_router_response = list_routers(
account=self.account.name, self.apiclient,
domainid=self.account.domainid listall="true"
) )
else:
list_router_response = list_routers(
self.apiclient,
account=self.account.name,
domainid=self.account.domainid
)
self.assertEqual( self.assertEqual(
isinstance(list_router_response, list), isinstance(list_router_response, list),
True, True,