Skip to content

Commit 1c31ee2

Browse files
ksowmyaPrasanna Santhanam
authored andcommitted
CLOUDSTACK-3927, CLOUDSTACK-3928: Fix NS scripts to add/remove NS device in setupClass/tearDown
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 885a161 commit 1c31ee2

5 files changed

Lines changed: 380 additions & 293 deletions

File tree

‎test/integration/component/test_netscaler_configs.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,21 +1239,21 @@ def test_netscaler_custom_capacity(self):
12391239
self.network_3 = Network.create(
12401240
self.apiclient,
12411241
self.services["network"],
1242-
accountid=self.account_3.account.name,
1243-
domainid=self.account_3.account.domainid,
1242+
accountid=self.account_3.name,
1243+
domainid=self.account_3.domainid,
12441244
networkofferingid=self.network_offering.id,
12451245
zoneid=self.zone.id
12461246
)
12471247
self.debug("Created network with ID: %s" % self.network_3.id)
12481248

1249-
self.debug("Deploying VM in account: %s" % self.account_3.account.name)
1249+
self.debug("Deploying VM in account: %s" % self.account_3.name)
12501250
with self.assertRaises(Exception):
12511251
# Spawn an instance in that network
12521252
virtual_machine_3 = VirtualMachine.create(
12531253
self.apiclient,
12541254
self.services["virtual_machine"],
1255-
accountid=self.account_3.account.name,
1256-
domainid=self.account_3.account.domainid,
1255+
accountid=self.account_3.name,
1256+
domainid=self.account_3.domainid,
12571257
serviceofferingid=self.service_offering.id,
12581258
networkids=[str(self.network_3.id)]
12591259
)
@@ -1513,21 +1513,21 @@ def test_netscaler_no_capacity(self):
15131513
self.network_3 = Network.create(
15141514
self.apiclient,
15151515
self.services["network"],
1516-
accountid=self.account_3.account.name,
1517-
domainid=self.account_3.account.domainid,
1516+
accountid=self.account_3.name,
1517+
domainid=self.account_3.domainid,
15181518
networkofferingid=self.network_offering.id,
15191519
zoneid=self.zone.id
15201520
)
15211521
self.debug("Created network with ID: %s" % self.network_3.id)
15221522

1523-
self.debug("Deploying VM in account: %s" % self.account_3.account.name)
1523+
self.debug("Deploying VM in account: %s" % self.account_3.name)
15241524
with self.assertRaises(Exception):
15251525
# Spawn an instance in that network
15261526
virtual_machine_3 = VirtualMachine.create(
15271527
self.apiclient,
15281528
self.services["virtual_machine"],
1529-
accountid=self.account_3.account.name,
1530-
domainid=self.account_3.account.domainid,
1529+
accountid=self.account_3.name,
1530+
domainid=self.account_3.domainid,
15311531
serviceofferingid=self.service_offering.id,
15321532
networkids=[str(self.network_3.id)]
15331533
)

0 commit comments

Comments
 (0)