Skip to content

Commit 2420da0

Browse files
committed
test/integration: fix invalid VMware smoketests failures
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent be41fd7 commit 2420da0

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

test/integration/smoke/test_service_offerings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def setUpClass(cls):
448448
cls.apiclient = testClient.getApiClient()
449449
cls.services = testClient.getParsedTestDataConfig()
450450
cls.hypervisor = testClient.getHypervisorInfo()
451-
451+
cls._cleanup = []
452452
cls.hypervisorNotSupported = False
453453
if cls.hypervisor.lower() not in ["kvm"]:
454454
cls.hypervisorNotSupported = True
@@ -516,7 +516,6 @@ def getHost(self, hostId=None):
516516
cls.offering,
517517
cls.account
518518
]
519-
return
520519

521520
@classmethod
522521
def tearDownClass(cls):

test/integration/smoke/test_vm_life_cycle.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,10 @@ def setUpClass(cls):
794794
cls.apiclient = testClient.getApiClient()
795795
cls.services = testClient.getParsedTestDataConfig()
796796
cls.hypervisor = testClient.getHypervisorInfo()
797+
cls._cleanup = []
798+
799+
if cls.hypervisor.lower() not in ["kvm"]:
800+
return
797801

798802
# Get Zone, Domain and templates
799803
domain = get_domain(cls.apiclient)
@@ -846,12 +850,12 @@ def setUp(self):
846850
self.apiclient = self.testClient.getApiClient()
847851
self.dbclient = self.testClient.getDbConnection()
848852
self.cleanup = []
849-
self.updateConfiguration("ca.plugin.root.auth.strictness", "false")
850-
self.make_all_hosts_secure()
851-
852853
if self.hypervisor.lower() not in ["kvm"]:
853854
self.skipTest("Secured migration is not supported on other than KVM")
854855

856+
self.updateConfiguration("ca.plugin.root.auth.strictness", "false")
857+
self.make_all_hosts_secure()
858+
855859
def tearDown(self):
856860
self.make_all_hosts_secure()
857861

0 commit comments

Comments
 (0)