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] [UBS] After entering not existing code of certificate, the output code is 200, not 404 #2258

Closed
YulianaQC opened this issue Feb 3, 2021 · 3 comments

Comments

@YulianaQC
Copy link

YulianaQC commented Feb 3, 2021

Environment: Windows, MacOS.
Reproducible: always.
Build found: 03.02.2021

Preconditions

  1. Registered User logged in.
  2. Swagger is opened and authorized (https://greencity-ubs.azurewebsites.net/swagger-ui.html)
  3. Dabase is opened

Steps to reproduce

  1. Click 'order-controller'
  2. Click 'GET /ubs/first/certificate/{code} Check if certificate is active'
  3. Click 'Try it out' button
  4. Enter the code in 'code' field that does not exist in table 'certificate', column 'code' (e.g. 'fgh').
  5. Click 'Execute' button

Actual result
Code 200

Expected result
Code 404

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

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

@YulianaQC YulianaQC changed the title [API] [UBS] After entering incorrect code of certificate, the output code is 200, not 404 [API] [UBS] After entering not existing code of certificate, the output code is 200, not 404 Feb 3, 2021
@Skajl-dev Skajl-dev self-assigned this Feb 4, 2021
@Skajl-dev Skajl-dev added this to the Java S6.2 milestone Feb 4, 2021
@LiliiaPalii
Copy link

Swagger doesn't contain 'order-controller' for checking

@ZaharVeremchuk
Copy link
Contributor

We have 3 different swagger. Its on ubs swagger.
https://greencity-ubs.azurewebsites.net/swagger-ui.html

@ZaharVeremchuk
Copy link
Contributor

@LiliiaPalii

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

4 participants