Description:
When admin user tries to change the course, created by another admin, unexpected code 404 not found and error message ('Unable to find course record(s)') are shown.
Pre-conditions:
There is at least two active users with admin role (here admin1 and admin2);
Steps to reproduce:
Login to admin1;
Save access token for admin1;
Create a new category by POST request (http://qa-school-test.quantori.academy/api/v1/categories) using saved admin1 access token, input in request body is:
{"title": "string"}, with 'title' being a string of valid length (3-100) and allowed characters (RU/EN alphabet, space, digits);
Save the newly created category id to use in following request;
Login to admin2 account;
Save access token for admin2;
Create a new course by POST request (http://qa-school-test.quantori.academy/api/v1/courses) using saved admin2 access token, input in request body is:
{"title": "string",
"description": "string",
"visible": true,
"categoryId": 0},
with 'title' being string of valid length (3-100) and allowed characters (RU/EN alphabet, space, digits), 'description' being string of valid length (3-255 as implemented at the moment), 'visible' being boolean, 'categoryId' being the id of the category created on the step 3;
Save the newly created course id to use in following request;
Try making PATCH request (http://qa-school-test.quantori.academy/api/v1/courses), using saved admin1 access token, input in request body is:
{ "id": 0,
"title": "string",
"description": "string",
"categoryId": 0},
with 'id' being the id of the course created on the step 7, 'title' being string of valid length (3-100) and allowed characters (RU/EN alphabet, space, digits), 'description' being string of valid length (3-255 as implemented at the moment), 'categoryId' being the id of the category created on the step 3
Description: When admin user tries to change the course, created by another admin, unexpected code 404 not found and error message ('Unable to find course record(s)') are shown.
Pre-conditions:
There is at least two active users with admin role (here admin1 and admin2);
Steps to reproduce:
Post-conditions:
Actual behavior:
Expected behavior:
Screenshots