Grommash9 / tg_chat_mate

https://grommash9.github.io/tg_chat_mate/
MIT License
5 stars 6 forks source link

login features tests #105

Closed Grommash9 closed 10 months ago

Grommash9 commented 10 months ago

Closes #39

I have added tests for some login endpoints, for getting and checking token using root credentials, running these tests we could verify we are able to create token by verifying manager credentials and decode it back to get manager username, also we are testing wrong password entered and wrong token used cases.

It's our first tests like this so it will also approve services are working fine, because we are able to call bot API (bot is running) and use MongoDB.

So now our post deploy tests are able to verify we have UI, BOT and MongoDB running fine.

Later we should add some tests for check login from UI maybe?

Closing 39 by this PR because we will no longer interested in different container for testing, we will set up after deploy and pre-deploy tests here inside bot container.