OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

[POST/email/addEcoNews] Incorrect behavior of AddEcoNews end-point. Response 200 OK always. #207

Closed OlhenShu closed 4 months ago

OlhenShu commented 5 months ago

Environment: 116.0.3 (64-bit). Reproducible: always.

Preconditions Moved to Swagger http://localhost:8065/swagger-ui.html#/ Sign-in on Swagger as user.

Steps to reproduce

  1. Click on Email controller
  2. Click on POST/email/addEcoNews
  3. Click on 'Try out'
  4. Enter data { "author": { "email": "Test3421gmail.com", "id": 154, "name": "Test1526435" }, "creationDate": "2023-08-23T11:46:06.482Z", "imagePath": "string", "source": "string", "text": "Test1241254125125125124", "title": "Test1111", "unsubscribeToken": "string" }

Actual result Response 200 OK

Expected result Response 400 Bad request

User story and test case links E.g.: "User story #23