Add config.json.test to use in Go test

This commit is contained in:
MrArmonius 2021-07-09 16:32:02 +02:00
parent a9b04a255f
commit eb7f00c526
2 changed files with 15 additions and 0 deletions

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

@ -6,6 +6,8 @@ trap "kill 0" EXIT
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