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/plans/aaf/aafapi/setup.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/plans/aaf/aafapi/setup.sh')
-rw-r--r-- | test/csit/plans/aaf/aafapi/setup.sh | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/csit/plans/aaf/aafapi/setup.sh b/test/csit/plans/aaf/aafapi/setup.sh index 4a312704f..add9ae17e 100644 --- a/test/csit/plans/aaf/aafapi/setup.sh +++ b/test/csit/plans/aaf/aafapi/setup.sh @@ -37,12 +37,15 @@ chmod -R 777 $WORKSPACE/archives/aafcsit/authz/auth/auth-service/src/main/resour # start aaf containers with docker compose and configuration from docker-compose.yml docker-compose up -d +export aaf_service=$(get_docker_compose_service aaf_container) +export cassandra_service=$(get_docker_compose_service cassandra_container) -# Wait for initialization of Docker contaienr for AAF & Cassandra +# Wait for initialization of Docker container for AAF & Cassandra for i in {1..12}; do - if [ $(docker inspect --format '{{ .State.Running }}' dockercompose_aaf_container_1) ] && \ - [ $(docker inspect --format '{{ .State.Running }}' dockercompose_cassandra_container_1) ] && \ - [ $(docker inspect --format '{{ .State.Running }}' dockercompose_aaf_container_1) ] + + if [ $(docker inspect --format '{{ .State.Running }}' $aaf_service) ] && \ + [ $(docker inspect --format '{{ .State.Running }}' $cassandra_service) ] && \ + [ $(docker inspect --format '{{ .State.Running }}' $aaf_service) ] then echo "AAF Service Running" break @@ -53,9 +56,11 @@ for i in {1..12}; do done -AAF_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dockercompose_aaf_container_1) -CASSANDRA_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dockercompose_cassandra_container_1) +AAF_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $aaf_service) +CASSANDRA_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $cassandra_service) +bypass_ip_adress $AAF_IP +bypass_ip_adress $CASSANDRA_IP echo AAF_IP=${AAF_IP} echo CASSANDRA_IP=${CASSANDRA_IP} |