From fdf88f32579d606cd82deadd3c89fac77b6aa472 Mon Sep 17 00:00:00 2001 From: Nate Potter Date: Wed, 17 Jan 2018 09:29:35 -0800 Subject: Add kolla internal vip to no_proxy The internal vip value is calculated at deploy time when bringing up the OpenStack VM, and isn't able to be included in the proxy values in the Vagrantfile. Because of this, we need to add it to no_proxy after it's calculated so that users and other services can access it in a proxy environment. Signed-off-by: Nathaniel Potter Issue-ID: INT-383 Change-Id: Ifed792a4f7e6f4f5a227848486e8165be4a30fc7 --- bootstrap/vagrant-onap/tests/asserts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bootstrap/vagrant-onap/tests/asserts') diff --git a/bootstrap/vagrant-onap/tests/asserts b/bootstrap/vagrant-onap/tests/asserts index 8eda3ce25..441b9f091 100755 --- a/bootstrap/vagrant-onap/tests/asserts +++ b/bootstrap/vagrant-onap/tests/asserts @@ -77,6 +77,16 @@ function asserts_file_exist { fi } +# asserts_env_set() - Function that verities that an environment variable is set +function asserts_env_set { + local variable=$1 + local error_msg=${2:-"$variable wasn't set"} + + if [ -z ${variable+x} ]; then + raise_error $error_msg + fi +} + # raise_error() - Function that prints and exits the execution function raise_error { echo $@ -- cgit 1.2.3-korg