aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/plans/music/music-distributed-kv-store-test-plan
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-26 15:53:08 -0700
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-26 15:53:08 -0700
commit28db3d66f98afb2376e6d51d78b379811b9187ec (patch)
tree376ad8fdb2022315e07e50287514224a53682efa /test/csit/plans/music/music-distributed-kv-store-test-plan
parent857a5d3b79cf3393eed3f36d815f24327f1deed8 (diff)
Update CSIT for MUSIC distributed KV store
This patch makes minor updates to the recently merged music distributed KV store CSIT tests. Change-Id: I2d210ae318e1d516e71ddead044af4ee30242228 Issue-ID: INT-446 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Diffstat (limited to 'test/csit/plans/music/music-distributed-kv-store-test-plan')
-rw-r--r--test/csit/plans/music/music-distributed-kv-store-test-plan/setup.sh14
-rw-r--r--test/csit/plans/music/music-distributed-kv-store-test-plan/teardown.sh7
2 files changed, 15 insertions, 6 deletions
diff --git a/test/csit/plans/music/music-distributed-kv-store-test-plan/setup.sh b/test/csit/plans/music/music-distributed-kv-store-test-plan/setup.sh
index 0a74e0d22..88becf69e 100644
--- a/test/csit/plans/music/music-distributed-kv-store-test-plan/setup.sh
+++ b/test/csit/plans/music/music-distributed-kv-store-test-plan/setup.sh
@@ -19,7 +19,9 @@
source ${SCRIPTS}/common_functions.sh
# Initial Configuration.
-CONSUL_IP="localhost"
+DATASTORE="consul"
+DATASTORE_IP="localhost"
+
MOUNTPATH="/dkv_mount_path/configs/"
DEFAULT_CONFIGS=$(pwd)/mountpath/default
@@ -38,10 +40,16 @@ key2=value2
EOF
popd
-docker run -e CONSUL_IP=$CONSUL_IP -e MOUNTPATH=$MOUNTPATH -it \
+docker login -u docker -p docker nexus3.onap.org:10001
+docker pull nexus3.onap.org:10001/onap/music/distributed-kv-store
+docker run -e DATASTORE=$DATASTORE -e DATASTORE_IP=$DATASTORE_IP -e MOUNTPATH=$MOUNTPATH -d \
--name dkv \
-v $DEFAULT_CONFIGS:/dkv_mount_path/configs/default \
- -p 8200:8200 -p 8080:8080 nexus3.onap.org:10003/onap/music/distributed-kv-store
+ -p 8200:8200 -p 8080:8080 nexus3.onap.org:10001/onap/music/distributed-kv-store
+
+
+echo "###### WAITING FOR DISTRIBUTED KV STORE CONTAINER TO COME UP"
+sleep 10
#
# add here all ROBOT_VARIABLES settings
diff --git a/test/csit/plans/music/music-distributed-kv-store-test-plan/teardown.sh b/test/csit/plans/music/music-distributed-kv-store-test-plan/teardown.sh
index 93067df44..0abf3a62d 100644
--- a/test/csit/plans/music/music-distributed-kv-store-test-plan/teardown.sh
+++ b/test/csit/plans/music/music-distributed-kv-store-test-plan/teardown.sh
@@ -15,6 +15,7 @@
# limitations under the License.
#
-docker stop nexus3.onap.org:10003/onap/music/distributed-kv-store
-docker rm nexus3.onap.org:10003/onap/music/distributed-kv-store
-docker rmi nexus3.onap.org:10003/onap/music/distributed-kv-store
+rm -rf mountpath
+docker stop dkv
+docker rm dkv
+docker rmi nexus3.onap.org:10001/onap/music/distributed-kv-store