diff options
author | ecaiyanlinux <martin.c.yan@est.tech> | 2019-08-21 12:10:33 +0000 |
---|---|---|
committer | Daniel Rose <dr695h@att.com> | 2019-08-29 17:35:36 +0000 |
commit | 796e8fe4255036b5785a2071ddd6a0240464556a (patch) | |
tree | b5d9ee29c9c07d91ea4848dafb12c5ae9cd7336d /test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh | |
parent | 190a2f42b5c0af56b8c8da7e05a90ad3999598d3 (diff) |
Add tls-init-container to simulator
1.replace dr-sim/dr-redir-sim cert/key
2.update mr-sim, make it support https
3.update ftpes cert/key
Change-Id: I7bbde98f352d1e7d7c8775acf3d8af89a6ef7bdc
Issue-ID: DCAEGEN2-1702
Signed-off-by: ecaiyanlinux <martin.c.yan@est.tech>
Diffstat (limited to 'test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh')
-rwxr-xr-x | test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh b/test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh index 9370f99a6..5463da8bd 100755 --- a/test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh +++ b/test/mocks/datafilecollector-testharness/simulator-group/simulators-start.sh @@ -12,6 +12,18 @@ server_check() { echo "Simulator " $1 " on localhost:$2$3 - no response" } +server_check_https() { + for i in {1..10}; do + res=$(curl -k -s -o /dev/null -w "%{http_code}" https://localhost:$2$3) + if [ $res -gt 199 ] && [ $res -lt 300 ]; then + echo "Simulator " $1 " on https://localhost:$2$3 responded ok" + return + fi + sleep 1 + done + echo "Simulator " $1 " on https://localhost:$2$3 - no response" +} + ftps_server_check() { for i in {1..10}; do res=$(curl --silent --max-time 3 localhost:$2 2>&1 | grep vsFTPd) @@ -97,6 +109,9 @@ server_check "consul " 8500 "/v1/catalog/service/agent" server_check "DR sim " 3906 "/" server_check "DR redir sim " 3908 "/" server_check "MR sim " 2222 "/" +server_check_https "DR sim https " 3907 "/" +server_check_https "DR redir sim https" 3909 "/" +server_check_https "MR sim https " 2223 "/" ftps_server_check "FTPS server 0" 1032 ftps_server_check "FTPS server 1" 1033 ftps_server_check "FTPS server 2" 1034 |