1
0
Fork 0
forked from mirror/prosody
prosody/tests/tests-prosody_postgres.bats
Sara Aimée Smiseth 80216c5fdc
Add support for postgres, mariadb/mysql databases (#23)
* Add environment variables for Database configuration.
* Install postgres and mysql dependencies.
* Test refactoring
* Run tests for prosody with postgres and also for prosody with sqlite.
* Add tests that check if postgres or sqlite is used.
2021-05-07 14:06:29 +02:00

10 lines
317 B
Bash

# 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 postgres" {
run bash -c "sudo docker-compose logs $batsContainerName | grep -E \"Connecting to \[PostgreSQL\] prosody\.\.\.\""
assert_success
assert_output
}