OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

[POST/email/addEcoNews] Incorrect behavior of AddEcoNews end-point. Need response 401 Unauthorized. #209

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#/

Steps to reproduce

  1. Click on Email controller
  2. Click on POST/email/addEcoNews
  3. Click on 'Try out'
  4. Enter valid data { "author": { "email": "test1@mail.com", "id": 154, "name": "Test1" }, "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 401 Unauthorized

User story and test case links E.g.: "User story https://github.com/Java-groups/JavaProjectTemplate/issues/23