You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ta...@apache.org on 2014/11/17 11:00:47 UTC

[5/5] git commit: updated refs/heads/master to 91ffaaa

CLOUDSTACK-7912: Remove hardcoded netscaler info and read it from config file

Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/91ffaaa5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/91ffaaa5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/91ffaaa5

Branch: refs/heads/master
Commit: 91ffaaa5a2163b2b62868097dea587bd712061d8
Parents: d8d60f0
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Fri Nov 14 19:53:25 2014 +0530
Committer: SrikanteswaraRao Talluri <ta...@apache.org>
Committed: Mon Nov 17 15:30:24 2014 +0530

----------------------------------------------------------------------
 .../component/test_lb_secondary_ip.py           |   12 +-
 test/integration/component/test_netscaler_lb.py | 3011 +++++++++---------
 .../component/test_netscaler_lb_algo.py         | 2180 +++++++------
 .../component/test_netscaler_lb_sticky.py       | 1013 +++---
 .../component/test_persistent_networks.py       |   30 +-
 tools/marvin/marvin/lib/common.py               |   18 +
 6 files changed, 3251 insertions(+), 3013 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/91ffaaa5/test/integration/component/test_lb_secondary_ip.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_lb_secondary_ip.py b/test/integration/component/test_lb_secondary_ip.py
index daffe34..841257f 100644
--- a/test/integration/component/test_lb_secondary_ip.py
+++ b/test/integration/component/test_lb_secondary_ip.py
@@ -49,7 +49,8 @@ from marvin.lib.common import (get_domain,
                                get_template,
                                verifyNetworkState,
                                wait_for_cleanup,
-                               add_netscaler
+                               add_netscaler,
+                               GetNetscalerInfoFromConfig
                                )
 
 from marvin.lib.utils import (validateList,
@@ -1775,11 +1776,18 @@ class TestExternalLoadBalancer(cloudstackTestCase):
         cls.testdata["virtual_machine"]["template"] = template.id
         cls._cleanup = []
 
+        response = GetNetscalerInfoFromConfig(
+            cls.config
+        )
+        assert response[0] is not None, response[1]
+        cls.testdata["netscaler"] = response[0]
+        cls.testdata["netscaler"]["lbdevicededicated"] = False
+
         try:
             cls.netscaler = add_netscaler(
                 cls.api_client,
                 cls.zone.id,
-                cls.testdata["netscaler_VPX"])
+                cls.testdata["netscaler"])
             cls._cleanup.append(cls.netscaler)
         except Exception as e:
             raise unittest.SkipTest("Failed to add netscaler device: %s" % e)