mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-09 13:27:18 +00:00
Add tests that check if postgres or sqlite is used.
This commit is contained in:
parent
6c5d334cef
commit
02ae15a8b3
5 changed files with 24 additions and 3 deletions
10
tests/tests-prosody.bats
Normal file
10
tests/tests-prosody.bats
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue