aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/plans/aaf
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-04-25 17:02:39 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-25 17:02:39 +0000
commit22bc8b21da1e138ad404f3bce67c35c8d4cdf4fa (patch)
tree8ac840d1b408b8d7bcc06b640777979f1c0794ff /test/csit/plans/aaf
parent333ec458d259b97506d0e891b6728bad75d233db (diff)
parentd84582cd8b02309bf5637c5677135bdddb9206dc (diff)
Merge "Renaming AAF services"
Diffstat (limited to 'test/csit/plans/aaf')
-rw-r--r--test/csit/plans/aaf/aafapi/setup.sh17
-rw-r--r--test/csit/plans/aaf/aafapi/teardown.sh6
2 files changed, 15 insertions, 8 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}
diff --git a/test/csit/plans/aaf/aafapi/teardown.sh b/test/csit/plans/aaf/aafapi/teardown.sh
index 1f7b2853d..41e0b00ea 100644
--- a/test/csit/plans/aaf/aafapi/teardown.sh
+++ b/test/csit/plans/aaf/aafapi/teardown.sh
@@ -17,6 +17,8 @@
# Modifications copyright (c) 2017 AT&T Intellectual Property
#
-kill-instance.sh dockercompose_aaf_container_1
-kill-instance.sh dockercompose_cassandra_container_1
+kill-instance.sh $aaf_service
+kill-instance.sh $cassandra_service
+unset aaf_service
+unset cassandra_service