diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-04-25 17:02:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-25 17:02:39 +0000 |
commit | 22bc8b21da1e138ad404f3bce67c35c8d4cdf4fa (patch) | |
tree | 8ac840d1b408b8d7bcc06b640777979f1c0794ff /test/csit/scripts | |
parent | 333ec458d259b97506d0e891b6728bad75d233db (diff) | |
parent | d84582cd8b02309bf5637c5677135bdddb9206dc (diff) |
Merge "Renaming AAF services"
Diffstat (limited to 'test/csit/scripts')
-rwxr-xr-x | test/csit/scripts/common_functions.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/csit/scripts/common_functions.sh b/test/csit/scripts/common_functions.sh index 69856dab3..4293a526c 100755 --- a/test/csit/scripts/common_functions.sh +++ b/test/csit/scripts/common_functions.sh @@ -233,3 +233,20 @@ function run_simulator_docker () ROBOT_VARIABLES=${ROBOT_VARIABLES}" -v SIMULATOR_IP:${SIMULATOR_IP} -v SCRIPTS:${SCRIPTS}" echo ${ROBOT_VARIABLES} } + +function get_docker_compose_service () +{ + local service=$1 + local compose_file=${2:-docker-compose.yml} + + echo $(docker-compose --file ./${compose_file} ps | grep $service | cut -d " " -f1 ) +} + +function bypass_ip_adress () +{ + local ip_address=$1 + + if [[ $no_proxy && $no_proxy != *$ip_address* ]]; then + export no_proxy=$no_proxy,$ip_address + fi +} |