summaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-09-22 10:24:02 +0300
committerJose Lausuch <jose.lausuch@ericsson.com>2016-09-22 07:42:51 +0000
commit60796b09d2380fd55f3e26b8e4dbc7a403a1dc96 (patch)
treee8bb47f67cc71679abbc707e89d9f7cc358e7851 /testcases
parent8696c9cacf50c8144c61f72b0ac27c6fb2609700 (diff)
Increment counter in sfc_colorado1colorado.1.0
Avoid infinite loop Change-Id: I2b024b188dcf0cdddb924c5bd13c9dfe81183bdd Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 8f6343fb8020a8e609f771b0a52d49dc2f1c4f43)
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/features/sfc/sfc_colorado1.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/testcases/features/sfc/sfc_colorado1.py b/testcases/features/sfc/sfc_colorado1.py
index dc13436eb..103d10b18 100755
--- a/testcases/features/sfc/sfc_colorado1.py
+++ b/testcases/features/sfc/sfc_colorado1.py
@@ -174,6 +174,7 @@ def main():
if instance is None:
logger.error("Error while booting instance.")
+ iterator += 1
continue
# Retrieve IP of INSTANCE
instance_ip = instance.networks.get(NET_NAME)[0]
@@ -191,6 +192,7 @@ def main():
if floatip_client is None:
logger.error("Cannot create floating IP.")
+ iterator += 1
continue
logger.info("Floating IP created: '%s'" % floatip_client)
@@ -200,6 +202,7 @@ def main():
instance.id,
floatip_client):
logger.error("Cannot associate floating IP to VM.")
+ iterator += 1
continue
# STARTING SECOND VM (server) ###
@@ -217,6 +220,7 @@ def main():
if instance_2 is None:
logger.error("Error while booting instance.")
+ iterator += 1
continue
# Retrieve IP of INSTANCE
instance_ip_2 = instance_2.networks.get(NET_NAME)[0]
@@ -234,6 +238,7 @@ def main():
if floatip_server is None:
logger.error("Cannot create floating IP.")
+ iterator += 1
continue
logger.info("Floating IP created: '%s'" % floatip_server)
@@ -244,6 +249,7 @@ def main():
instance_2.id,
floatip_server):
logger.error("Cannot associate floating IP to VM.")
+ iterator += 1
continue
# CREATION OF THE 2 SF ####
@@ -309,6 +315,7 @@ def main():
if not all(check):
logger.error("Cannot establish SSH connection to the SFs")
+ iterator += 1
continue
logger.info("SSH connectivity to the SFs established")