From 588287af17f083504c9ea9c58ae53de89deb7f19 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 19 Dec 2022 15:49:56 +0530 Subject: [PATCH] test: use normal user for createing networks, vpcs (#6988) When using admin=True in account creation with domain it creates a domain admin. It would be better to run tests as normal user. Signed-off-by: Abhishek Kumar --- test/integration/component/test_network_ipv6.py | 2 +- test/integration/component/test_vpc_ipv6.py | 2 +- test/integration/smoke/test_network_ipv6.py | 2 +- test/integration/smoke/test_vpc_ipv6.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/component/test_network_ipv6.py b/test/integration/component/test_network_ipv6.py index 30734d73d95..1e2c53879fd 100644 --- a/test/integration/component/test_network_ipv6.py +++ b/test/integration/component/test_network_ipv6.py @@ -135,7 +135,7 @@ class TestIpv6Network(cloudstackTestCase): cls.account = Account.create( cls.apiclient, cls.services["account"], - admin=True, + admin=False, domainid=cls.domain.id ) cls._cleanup.append(cls.account) diff --git a/test/integration/component/test_vpc_ipv6.py b/test/integration/component/test_vpc_ipv6.py index fda46ea2378..bb44af936af 100644 --- a/test/integration/component/test_vpc_ipv6.py +++ b/test/integration/component/test_vpc_ipv6.py @@ -152,7 +152,7 @@ class TestIpv6Vpc(cloudstackTestCase): cls.account = Account.create( cls.apiclient, cls.services["account"], - admin=True, + admin=False, domainid=cls.domain.id ) cls._cleanup.append(cls.account) diff --git a/test/integration/smoke/test_network_ipv6.py b/test/integration/smoke/test_network_ipv6.py index 41b7c85dea0..720f14e64da 100644 --- a/test/integration/smoke/test_network_ipv6.py +++ b/test/integration/smoke/test_network_ipv6.py @@ -135,7 +135,7 @@ class TestIpv6Network(cloudstackTestCase): cls.account = Account.create( cls.apiclient, cls.services["account"], - admin=True, + admin=False, domainid=cls.domain.id ) cls._cleanup.append(cls.account) diff --git a/test/integration/smoke/test_vpc_ipv6.py b/test/integration/smoke/test_vpc_ipv6.py index e00c578809c..ce4d466acf0 100644 --- a/test/integration/smoke/test_vpc_ipv6.py +++ b/test/integration/smoke/test_vpc_ipv6.py @@ -152,7 +152,7 @@ class TestIpv6Vpc(cloudstackTestCase): cls.account = Account.create( cls.apiclient, cls.services["account"], - admin=True, + admin=False, domainid=cls.domain.id ) cls._cleanup.append(cls.account)