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 31 forks source link

add testcase for weak password validation #475

Closed artmarchenko closed 2 years ago

artmarchenko commented 2 years ago

dev

ZenHub

Summary of issue

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

Summary of change

Testing approach

not required

CHECK LIST

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication