aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/sdn
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-26 11:52:15 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-26 11:53:10 +0100
commit70886a190335f02f1c7ed1d9c50823f978b291b1 (patch)
treed700f598c6ee1ed54476ba9efb03333f639a98a8 /functest/opnfv_tests/sdn
parentd262b55a1e29b1202cd584f859d2d221d9addb8c (diff)
Raise exceptions when SDN_CONTROLLER_IP is None
Change-Id: Ia0d00a6b3c4c4936dc10602e838f507beea0c592 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/sdn')
-rw-r--r--functest/opnfv_tests/sdn/odl/odl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest/opnfv_tests/sdn/odl/odl.py b/functest/opnfv_tests/sdn/odl/odl.py
index 7283be57f..f5e07ad3d 100644
--- a/functest/opnfv_tests/sdn/odl/odl.py
+++ b/functest/opnfv_tests/sdn/odl/odl.py
@@ -190,6 +190,7 @@ class ODLTests(robotframework.RobotFramework):
kwargs['odlrestconfport'] = '8087'
else:
kwargs['odlip'] = env.get('SDN_CONTROLLER_IP')
+ assert kwargs['odlip']
except KeyError as ex:
self.__logger.error("Cannot run ODL testcases. "
"Please check env var: "