ita-social-projects / TeachUA

The project aims to promote the Ukrainian language for study clubs in Russian-speaking regions of Ukraine. This is a web application that contains a database of clubs with the Ukrainian language of instruction. Clubs have the opportunity to register on the site and provide information about themselves. Users can search for clubs by various parameters (activity type, location, etc.)
MIT License
22 stars 10 forks source link

[API/GET/club-registration/unapproved] Status code 200 instead of 404 when manager is invalid #2149

Open Ytrygub opened 8 months ago

Ytrygub commented 8 months ago

Environment: Windows 10 Pro Version 22H2 Version 120.0.6099.225 (Official Build) (64-bit) Reproducible: always Build found: front 2024-01-04 d5b9ee back 2024-01-04 7dd789

Preconditions

  1. Site http://speak-ukrainian.eastus2.cloudapp.azure.com/dev/ is opened.
  2. Method: GET
  3. Endpoint: /api/club-registration/unapproved/{managerId}
  4. Token in Postman is received (as for User Manager)

Steps to reproduce

  1. Go to Postman
  2. Create GET request
  3. Use invalid value (e.g. 1111111111111111) instead of {managerId}
  4. Click 'SEND' button

Actual result Status code '200 OK' image

Postconditions '404 Not Found' status code and message 'Manager ID is not found' should appear