mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-06 22:14:10 +00:00
wip tests 6
This commit is contained in:
parent
42401df95e
commit
d064d7b3de
3 changed files with 54 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue