add tests for new modules

This commit is contained in:
Sara Aimée Smiseth 2021-04-01 18:54:51 +02:00
parent d1db0837ec
commit b6af9f8cb5

View file

@ -94,8 +94,20 @@ load 'bats/bats-assert/load'
assert_output
}
# TODO Add tests for register_apps etc
# Serving 'register_apps' at https://localhost:5281/register_apps
#prosody_1 | localhost:http debug Serving 'register_apps' at https://localhost/register_apps
#prosody_1 | localhost:http debug Serving 'invites_page' at https://localhost/invite
#prosody_1 | localhost:http debug Serving 'invites_register_web' at https://localhost/register
@test "Should serve register_apps" {
run bash -c "sudo docker-compose logs | grep \"Serving 'register_apps' at https:\/\/localhost:5281\/register_apps\""
assert_success
assert_output
}
@test "Should serve invites_page" {
run bash -c "sudo docker-compose logs | grep \"Serving 'invites_page' at https:\/\/localhost:5281\/invite\""
assert_success
assert_output
}
@test "Should serve invites_register_web" {
run bash -c "sudo docker-compose logs | grep \"Serving 'invites_register_web' at https:\/\/localhost:5281\/register\""
assert_success
assert_output
}