Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] [Pricing page. Admin cabinet] The system issues status code 500 instead of 400 when the user creates a station with invalid data #4803

Closed
DavidPolishchuk opened this issue Dec 12, 2022 · 0 comments

Comments

@DavidPolishchuk
Copy link

DavidPolishchuk commented Dec 12, 2022

Environment: Windows 10 Home (Version 22H2)
Chrome version 108.0.5359.71
MacOS version 12.6.1 (21G217)
Chromе version 107.0.5304.110
Reproducible: always
Build found: 10.12.2022

Preconditions

  1. Swagger is opened
  2. The user has been registered as Super Admin
  3. Go "Тарифи” -> tools “Gear”
  4. Tap on “Додати”, and then choose point “Станція приймання”.

Steps to reproduce

  1. Make method POST greencity-ubs.testgreencity.ga/ubs/superAdmin/create-receiving-station
  2. Input greencity-ubs.testgreencity.ga/ubs/superAdmin/create-receiving-station?name=DD
  3. Click the 'Execute' button
Desktop.2022.12.12.-.02.08.38.05.mp4

Actual result
The system outputs a 500 status code instead 400 status code when the user creates a station with invalid data

Expected result
The system outputs a 400 status code when the user creates a station with invalid data

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

Labels to be added
"Bug", Priority ("pri: medium"), Severity ("severity:minor"), Type ("Functional"), "API" (for back-end bugs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants