wip tests 6

This commit is contained in:
Sara Aimée Smiseth 2020-10-06 18:02:05 +02:00
parent 42401df95e
commit d064d7b3de
3 changed files with 54 additions and 12 deletions

View file

@ -25,8 +25,9 @@ sudo docker-compose down \
&& sudo docker-compose up -d \
\
&& sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register admin localhost 12345678" \
&& sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user localhost 12345678" \
&& sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user1 localhost 12345678" \
&& sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user2 localhost 12345678" \
&& sudo docker exec tests_prosody_1 /bin/bash -c "/entrypoint.sh register user3 localhost 12345678" \
\
&& python -m venv venv \
&& source venv/bin/activate \
@ -37,6 +38,9 @@ sudo docker-compose down \
&& sudo docker-compose logs | grep "message to" \
&& sudo docker-compose logs | grep "type='error'"
# Received[c2s]: <message to='*@localhost' * type='chat'>
# Should be five times in log
# TODO Call bats and create tests to check log output
sudo docker-compose down