abh1sar commented on code in PR #9323:
URL: https://github.com/apache/cloudstack/pull/9323#discussion_r1663476075
##########
test/integration/smoke/test_primary_storage_scope.py:
##########
@@ -35,22 +35,41 @@ def setUp(self):
self._cleanup = []
self.zone = get_zone(self.apiclient, self.testClient.getZoneForTests())
self.pod = get_pod(self.apiclient, self.zone.id)
- self.debug("here")
self.debug(self.services)
self.cluster1 = list_clusters(self.apiclient)[0]
- self.debug("here1")
self.debug(self.cluster1)
+ if (self.cluster1 == None):
+ cloudstackTestCase.skipTest(self, "Cluster not found. Skipping
test.")
+ if (self.cluster1.hypervisortype not in ['KVM', 'VMware',
'Simulator']):
+ cloudstackTestCase.skipTest(self, "Supported hypervisors (KVM,
VMware, Simulator) not found. Skipping test.")
self.cluster = {
'clustername': 'C0_testScope',
'clustertype': 'CloudManaged'
}
+ return
+
+ def tearDown(self):
+ try:
+ cleanup_resources(self.apiclient, self._cleanup)
+ except Exception as e:
+ raise Exception("Warning: Exception during cleanup : %s" % e)
+ return
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]