Skip to content

Commit 91ffaaa

Browse files
Gaurav AradhyeSrikanteswaraRao Talluri
authored andcommitted
CLOUDSTACK-7912: Remove hardcoded netscaler info and read it from config file
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
1 parent d8d60f0 commit 91ffaaa

6 files changed

Lines changed: 3251 additions & 3013 deletions

File tree

‎test/integration/component/test_lb_secondary_ip.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
get_template,
5050
verifyNetworkState,
5151
wait_for_cleanup,
52-
add_netscaler
52+
add_netscaler,
53+
GetNetscalerInfoFromConfig
5354
)
5455

5556
from marvin.lib.utils import (validateList,
@@ -1775,11 +1776,18 @@ def setUpClass(cls):
17751776
cls.testdata["virtual_machine"]["template"] = template.id
17761777
cls._cleanup = []
17771778

1779+
response = GetNetscalerInfoFromConfig(
1780+
cls.config
1781+
)
1782+
assert response[0] is not None, response[1]
1783+
cls.testdata["netscaler"] = response[0]
1784+
cls.testdata["netscaler"]["lbdevicededicated"] = False
1785+
17781786
try:
17791787
cls.netscaler = add_netscaler(
17801788
cls.api_client,
17811789
cls.zone.id,
1782-
cls.testdata["netscaler_VPX"])
1790+
cls.testdata["netscaler"])
17831791
cls._cleanup.append(cls.netscaler)
17841792
except Exception as e:
17851793
raise unittest.SkipTest("Failed to add netscaler device: %s" % e)

0 commit comments

Comments
 (0)