diff options
author | MrArmonius <mrarmonius@gmail.com> | 2021-07-09 15:47:54 +0200 |
---|---|---|
committer | MrArmonius <mrarmonius@gmail.com> | 2021-07-19 18:57:40 +0200 |
commit | da627ac39ad437bfb6be7e5f343933a0ca4e5073 (patch) | |
tree | ee2a5e87a9c872e668deaf5dea056552e177442f /test_automatic/start_test.sh | |
parent | a98556d5c1241f9150202d72ea096a775d97a582 (diff) | |
download | bottin-da627ac39ad437bfb6be7e5f343933a0ca4e5073.tar.gz bottin-da627ac39ad437bfb6be7e5f343933a0ca4e5073.zip |
Script in ash to launch our test V1.0 (end-to-end) in a Consul's
container
Diffstat (limited to 'test_automatic/start_test.sh')
-rwxr-xr-x | test_automatic/start_test.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test_automatic/start_test.sh b/test_automatic/start_test.sh index 38fe706..e7a1712 100755 --- a/test_automatic/start_test.sh +++ b/test_automatic/start_test.sh @@ -1,11 +1,12 @@ -#!/bin/bash +#!/bin/sh -trap "kill 0" EXIT - -export BOTTIN_DEFAULT_ADMIN_PW=$(openssl rand -base64 24) +#export BOTTIN_DEFAULT_ADMIN_PW=$(openssl rand -base64 24) echo $BOTTIN_DEFAULT_ADMIN_PW consul agent -dev > /dev/null 2>&1 & sleep 2 +cp test_automatic/config.json.test config.json ./bottin > /dev/null 2>&1 & sleep 1 ./test_automatic/integration +rm config.json +exit 0 |