From 2867c6a6df6fe552cd8cf1f8bb7447bf8084d859 Mon Sep 17 00:00:00 2001 From: SrikanteswaraRao Talluri Date: Thu, 16 May 2013 17:29:12 +0530 Subject: [PATCH] CLOUDSTACK-2542: Fix router test for basic zone Signed-off-by: Prasanna Santhanam --- test/integration/smoke/test_routers.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/test/integration/smoke/test_routers.py b/test/integration/smoke/test_routers.py index 9ec2e918c42..f6ca2790069 100644 --- a/test/integration/smoke/test_routers.py +++ b/test/integration/smoke/test_routers.py @@ -141,11 +141,17 @@ class TestRouterServices(cloudstackTestCase): # by checking status of dnsmasq process # Find router associated with user account - list_router_response = list_routers( - self.apiclient, - account=self.account.name, - domainid=self.account.domainid - ) + if self.zone.networktype == "Basic": + list_router_response = list_routers( + self.apiclient, + listall="true" + ) + else: + list_router_response = list_routers( + self.apiclient, + account=self.account.name, + domainid=self.account.domainid + ) self.assertEqual( isinstance(list_router_response, list), True,