Skip to content

Commit cc0ed93

Browse files
author
Girish Shilamkar
committed
Fixed test_pvlan.py to get correct zone id
1 parent 98df3e5 commit cc0ed93

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎test/integration/smoke/test_pvlan.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ class TestPVLAN(cloudstackTestCase):
3838
vlan = 1234
3939
isolatedpvlan = 567
4040

41-
def setUp(self):
42-
self.apiClient = self.testClient.getApiClient()
41+
@classmethod
42+
def setUpClass(cls):
43+
cls.testClient = super(TestPVLAN, cls).getClsTestClient()
44+
cls.apiClient = cls.testClient.getApiClient()
45+
cls.zone = get_zone(cls.apiClient, cls.testClient.getZoneForTests())
46+
cls.zoneId = cls.zone.id
4347

4448
@attr(tags = ["advanced", "selfservice"])
4549
def test_create_pvlan_network(self):

0 commit comments

Comments
 (0)