MCPcopy Create free account
hub / github.com/apache/cloudstack / setUpClass

Method setUpClass

test/integration/smoke/test_list_hosts.py:34–43  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

32
33 @classmethod
34 def setUpClass(cls):
35 testClient = super(TestListHosts, cls).getClsTestClient()
36 cls.apiclient = testClient.getApiClient()
37 cls.services = testClient.getParsedTestDataConfig()
38 cls.hypervisor = testClient.getHypervisorInfo()
39 cls.zones = list_zones(cls.apiclient)
40 cls.zone = cls.zones[0]
41 cls.clusters = list_clusters(cls.apiclient)
42 cls.cluster = cls.clusters[0]
43 cls.hosts = Host.list(cls.apiclient)
44
45
46 @classmethod

Callers

nothing calls this directly

Calls 7

list_zonesFunction · 0.90
list_clustersFunction · 0.90
getClsTestClientMethod · 0.80
getApiClientMethod · 0.80
getHypervisorInfoMethod · 0.80
listMethod · 0.65

Tested by

no test coverage detected