diff --git a/tests/tests.bats b/tests/tests.bats index dacf9e0..03dcd9e 100644 --- a/tests/tests.bats +++ b/tests/tests.bats @@ -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 +}