aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vping/vping_userdata.py
diff options
context:
space:
mode:
authorJuha Kosonen <juha.kosonen@nokia.com>2018-06-12 16:35:19 +0300
committerJuha Kosonen <juha.kosonen@nokia.com>2018-06-13 16:47:15 +0300
commit34ba453f1924f0d3ccd54d38db82fe008ab40442 (patch)
tree89f207c2f89086d01203b05c19f5cab91043163d /functest/opnfv_tests/openstack/vping/vping_userdata.py
parent759cd4bb92e171b16af5c6c1206352b92096d596 (diff)
Abort vping_userdata test if IP address is missing
Do not start checking the result of ping test if the first instance has no IP address. JIRA: FUNCTEST-976 Change-Id: I2da3154e63a6a97f86efe8274be84abc437aa133 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/vping/vping_userdata.py')
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_userdata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_userdata.py b/functest/opnfv_tests/openstack/vping/vping_userdata.py
index 056598d71..4f9f635c3 100644
--- a/functest/opnfv_tests/openstack/vping/vping_userdata.py
+++ b/functest/opnfv_tests/openstack/vping/vping_userdata.py
@@ -64,6 +64,10 @@ class VPingUserdata(vping_base.VPingBase):
"""
Override from super
"""
+ if not self.vm1.private_v4:
+ self.logger.error("vm1: IP addr missing")
+ return testcase.TestCase.EX_TESTCASE_FAILED
+
self.logger.info("Waiting for ping...")
exit_code = testcase.TestCase.EX_TESTCASE_FAILED
sec = 0