Add tests that check if postgres or sqlite is used.

This commit is contained in:
Sara Aimée Smiseth 2021-05-07 13:02:43 +02:00
parent 6c5d334cef
commit 02ae15a8b3
5 changed files with 24 additions and 3 deletions

10
tests/tests-prosody.bats Normal file
View file

@ -0,0 +1,10 @@
# For tests with pipes see: https://github.com/sstephenson/bats/issues/10
load 'bats/bats-support/load'
load 'bats/bats-assert/load'
@test "Should use sqlite" {
run bash -c "sudo docker-compose logs $batsContainerName | grep -E \"Connecting to \[SQLite3\] \/usr\/local\/var\/lib\/prosody\/prosody\.sqlite\.\.\.\""
assert_success
assert_output
}