Fix a bug in DFC CSIT 21/95121/2
authorecaiyanlinux <martin.c.yan@est.tech>
Fri, 6 Sep 2019 09:31:51 +0000 (09:31 +0000)
committerDaniel Rose <dr695h@att.com>
Mon, 9 Sep 2019 15:54:24 +0000 (15:54 +0000)
when mounting a shared volume, the uid:gid is changed automaticlly
which could cause potential unstable.

Change-Id: If6279489ba0ba3d24fdd6893e02d9babf29d7925
Issue-ID: DCAEGEN2-1702
Signed-off-by: ecaiyanlinux <martin.c.yan@est.tech>
test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh

index 5463da8..5c7c32f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-set -x 
+set -x
 server_check() {
        for i in {1..10}; do
                res=$(curl  -s -o /dev/null -w "%{http_code}" localhost:$2$3)
@@ -59,6 +59,9 @@ docker-compose -f docker-compose-template.yml config > docker-compose.yml
 
 docker-compose up -d
 
+sudo chown $(id -u):$(id -g) consul
+sudo chown $(id -u):$(id -g) consul/consul/
+
 declare -a SFTP_SIM
 declare -a FTPS_SIM