Script in ash to launch our test V1.0 (end-to-end) in a Consul's

container
This commit is contained in:
MrArmonius 2021-07-09 15:47:54 +02:00
parent a98556d5c1
commit da627ac39a
4 changed files with 23 additions and 6 deletions

View File

@ -14,11 +14,13 @@ steps:
- name: test_bottin
image: consul:latest
environment:
BOTTIN_DEFAULT_ADMIN_PW: priZ4Cg0x5NkSyiIN/MpvWw4ZEy8f8s1
commands:
- ./test_automatic/start_test.sh
- ash test_automatic/start_test.sh
---
kind: signature
hmac: 939fca00ff84d40e9364cd936c18c40c5becafa05e0f887bc04cf6336a4913a2
hmac: a4455c124ee87ca8b0ef1779560703573f3a3f24d406e4cb281b9e0dab4ceeda
...

View File

@ -0,0 +1,13 @@
{
"suffix": "dc=deuxfleurs,dc=fr",
"bind": "127.0.0.1:1389",
"acl": [
"ANONYMOUS::bind:*,ou=users,dc=deuxfleurs,dc=fr:",
"ANONYMOUS::bind:cn=admin,dc=deuxfleurs,dc=fr:",
"*,dc=deuxfleurs,dc=fr::read:*:* !userpassword",
"*::read modify:SELF:*",
"cn=admin,dc=deuxfleurs,dc=fr::read add modify delete:*:*",
"*:cn=admin,ou=groups,dc=deuxfleurs,dc=fr:read add modify delete:*:*"
]
}

View File

@ -425,6 +425,7 @@ func main() {
printError(err)
log.Info("Clean succes")
defer os.Exit(0)
return
}

View File

@ -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