Update prosody to version 0.12.0 (#35)

* Update luarocks to 3.9.0
* Update tests for prosody version 0.12.0
This commit is contained in:
Sara Aimée Smiseth 2022-05-05 18:25:19 +02:00 committed by GitHub
parent 13d9c1b9d1
commit 7a4ebd68d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 29 deletions

View file

@ -18,7 +18,7 @@ generateCert() {
registerTestUser() {
local userName="$1"
local containerName="$2"
sudo docker exec "$containerName" /bin/bash -c "/entrypoint.bash register $userName localhost 12345678"
sudo docker compose exec "$containerName" /bin/bash -c "/entrypoint.bash register $userName localhost 12345678"
}
registerTestUsers() {
@ -60,12 +60,12 @@ sudo docker-compose down \
&& sleep 10 \
&& sudo docker-compose up -d prosody_postgres
registerTestUsers tests_prosody_postgres_1
registerTestUsers prosody_postgres
runTests prosody_postgres
sudo docker-compose down
# Run tests for second container with SQLite
sudo docker-compose up -d prosody
registerTestUsers tests_prosody_1
registerTestUsers prosody
runTests prosody
sudo docker-compose down