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 <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a5189b15 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a5189b15 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a5189b15 Branch: refs/heads/disk_io_throttling Commit: a5189b1550139c2bcf2a0982ddbedf8effcd13d4 Parents: f4dcca6 Author: Prasanna Santhanam <[email protected]> Authored: Mon Jun 17 13:36:29 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Mon Jun 17 17:32:05 2013 +0530 ---------------------------------------------------------------------- test/integration/component/test_vpc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a5189b15/test/integration/component/test_vpc.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_vpc.py b/test/integration/component/test_vpc.py index acf7a8e..0afeb77 100644 --- a/test/integration/component/test_vpc.py +++ b/test/integration/component/test_vpc.py @@ -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(
