Fix the listVPC based on user roles

listVPC based on user roles uses the old account.account reference
causing the test to fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-06-17 13:36:29 +05:30
parent f4dcca6e47
commit a5189b1550

View File

@ -795,16 +795,16 @@ class TestVPC(cloudstackTestCase):
self.services["vpc"],
vpcofferingid=self.vpc_off.id,
zoneid=self.zone.id,
account=self.user.account.name,
domainid=self.user.account.domainid
account=self.user.name,
domainid=self.user.domainid
)
self.validate_vpc_network(vpc_2)
self.debug("Validating list VPCs call by passing account and domain")
vpcs = VPC.list(
self.apiclient,
account=self.user.account.name,
domainid=self.user.account.domainid,
account=self.user.name,
domainid=self.user.domainid,
listall=True
)
self.assertEqual(