diff options
author | Victor Morales <victor.morales@intel.com> | 2018-04-23 16:01:55 -0700 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2018-04-24 16:45:54 -0700 |
commit | d84582cd8b02309bf5637c5677135bdddb9206dc (patch) | |
tree | bc891888fa96a80a2ec7add8f1543af19a11aaad /test/csit/scripts/common_functions.sh | |
parent | 6b7b3a1880ca51f258ccc004d92b60ce13b4a014 (diff) |
Renaming AAF services
This change fixes the names used by docker-compose for AAF services.
Change-Id: Ib99c4fcfd5721c3636b6dd25f82ac8853d80a8e3
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-480
Diffstat (limited to 'test/csit/scripts/common_functions.sh')
-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 +} |