aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-09-22 10:24:02 +0300
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-09-22 10:24:02 +0300
commit8f6343fb8020a8e609f771b0a52d49dc2f1c4f43 (patch)
tree068785d3a81c5fc481e0a04cbc9b376852b28fe4 /testcases
parent4b07146f7d667c04159d57d681102995f6060f86 (diff)
Increment counter in sfc_colorado1
Avoid infinite loop Change-Id: I2b024b188dcf0cdddb924c5bd13c9dfe81183bdd Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
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")