From b6af9f8cb51573d24d92689d23aab4d6d9bb5b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:54:51 +0200 Subject: [PATCH] add tests for new modules --- tests/tests.bats | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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 +}