ita-social-projects / Home

Home - is an all-in-one social service that will cover all aspects of your communication with your home and neighbors.
http://www.home-project-engineering.tech/api/0/apidocs/index.html
MIT License
26 stars 30 forks source link

Cover password complexity validation with api tests #472

Closed vladyslavyarets closed 2 years ago

vladyslavyarets commented 2 years ago

Summary

Currently this functionality covered by integration tests but have but there is some bug (wrong HTTP status code and exception message sends from controller in exception path). Expected behavior: When password is weak the following json should be sended by the application:

{
  "response_code": 406,
  "error_message": "Password too weak"
}

Actual behavior:

{
  "response_code": 500,
  "error_message": "Unknown error. Please contact support."
}

This functionality will be hotfixed it task #451, but it still needed to be covered with Api tests.

Cover this and relative aspects with api testing

vladyslavyarets commented 2 years ago

Hey team! Please add your planning poker estimate with ZenHub @EkaterinaYatsyna @ystoikov

vladyslavyarets commented 2 years ago

task assigned by Artem Marchenko

vladyslavyarets commented 2 years ago

Done!