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

[Create habit assign, Database ] Manualy created habit assigns in ACTIVE status can't be used in endpoints #15

Open
Priadkohrystyna opened this issue Sep 9, 2023 · 0 comments

Comments

@Priadkohrystyna
Copy link
Collaborator

Priadkohrystyna commented Sep 9, 2023

Environment:

Windows 11 Home
Microsoft Edge Version 115.0.1901.188 (Official) (64-bit)
GreenCityDocker-3 is built and running
Reproducible: always.

Preconditions:

  • User is connected to database
  • User has at least one habit_assign created manually in database with default habit_assign status 'ACTIVE'.

Steps to reproduce:

  1. Select habit-assign-controller
  2. Select method GET /habit/assign/{habitId}/all
  3. Set the habitid of the created habit-assign as the value of the id parameter
  4. Sent the request
  5. Look at response content
  6. Select method DELETE/habit/assign/delete/{habitAssignId
  7. Set the habitid of the created habit-assign as the value of the id parameter
  8. Sent the request
  9. Look at response content

Actual result:
This enpoints get response 500 Internal Error:

  1. GET /habit/assign/{habitId}/all
  2. DELETE/habit/assign/delete/{habitAssignId
    Expected result:

1.200OK
2.200OK

User story links:

9  500 delete Admin

2 500 для статусу ACTIVE

@Priadkohrystyna Priadkohrystyna changed the title [Controller name, Method /endpoint] Bug' summary [Create habit assign, Database ] Manualy created habit assigns in ACTIVE status can't be used in Swagger endpoints Sep 9, 2023
@Priadkohrystyna Priadkohrystyna changed the title [Create habit assign, Database ] Manualy created habit assigns in ACTIVE status can't be used in Swagger endpoints [Create habit assign, Database ] Manualy created habit assigns in ACTIVE status can't be used in endpoints Sep 10, 2023
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

1 participant