You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API_'Events'_module_500 status code is displayed when user enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint
#828
Open
inna-zeinalova opened this issue
Mar 31, 2022
· 0 comments
· May be fixed by #880
inna-zeinalova
changed the title
API_'Events'_500 status code is displayed when User enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint
API_'Events'_module_500 status code is displayed when User enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint
Mar 31, 2022
inna-zeinalova
changed the title
API_'Events'_module_500 status code is displayed when User enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint
API_'Events'_module_500 status code is displayed when user enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint
Apr 2, 2022
Reproducible: always
Build found: last commit from https://github.com/ita-social-projects/WhatBackend
Preconditions
@user = Administrator, Secretary, Mentor
@user exists in WHAT Project API v.2
@user is logged in to WHAT Project API v.2 https://whatbackend.azurewebsites.net/index.html?urls.primaryName=WHAT%20Project%20API%20v2
lessonID=12345 does not exist in WHAT Project API v.2
New event is created. EventId = (last created EventId + 1)
Steps to reproduce
Test data:
Id of scheduled event = EventId (last created EventId + 1)
Lesson to be connected (lessonId) = 12345
Actual result
Status code 500 ("Internal Server Error. An error occurred while updating the entries. See the inner exception for details.") is displayed
Expected result
Status code 404: given lessonID not found is displayed
Postconditions
Log out from https://whatbackend.azurewebsites.net/index.html?urls.primaryName=WHAT%20Project%20API%20v2
Test case link: https://jira.softserve.academy/browse/DW-387
Labels to be added
'Bug', Priority ('Medium'), Severity ('Minor'), Type ('Functional')
Attachment
https://monosnap.com/file/EkhbbHnV7L2p20tq3CuI9FUyRu9k1W
The text was updated successfully, but these errors were encountered: