cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tall...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 82b6c13
Date Thu, 05 Feb 2015 10:21:00 GMT
CLOUDSTACK-8214: test_netscaler_nw_off.py - Skip test if enough zones are not present instead
of throwing exception

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


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

Branch: refs/heads/master
Commit: 8354d4a765b98006192076b8c4ace045c36b0aa4
Parents: d62d511
Author: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
Authored: Wed Feb 4 22:40:37 2015 -0800
Committer: SrikanteswaraRao Talluri <talluri@apache.org>
Committed: Thu Feb 5 15:50:51 2015 +0530

----------------------------------------------------------------------
 test/integration/component/test_netscaler_nw_off.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8354d4a7/test/integration/component/test_netscaler_nw_off.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_netscaler_nw_off.py b/test/integration/component/test_netscaler_nw_off.py
index 301c866..c2095a8 100644
--- a/test/integration/component/test_netscaler_nw_off.py
+++ b/test/integration/component/test_netscaler_nw_off.py
@@ -424,11 +424,9 @@ class TestAddMultipleNSDiffZone(cloudstackTestCase):
         for zone in zones:
             if zone.networktype == 'Advanced':
                 zone_list.append(zone)
-        self.assertGreater(
-                           len(zone_list),
-                           1,
-                           "Atleast 2 advanced mode zones should be present for this test"
-                           )
+        if len(zone_list) < 2:
+            self.skipTest("Atleast 2 advanced mode zones should be present for this test")
+
         zoneid=zone_list[0].id
         physical_networks = PhysicalNetwork.list(
                                                  self.apiclient,


Mime
View raw message