[Koha-bugs] [Bug 24680] Hold modification endpoints don't always work properly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 21 09:41:45 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24680

--- Comment #5 from Ere Maijala <ere.maijala at helsinki.fi> ---
Test plan for suspension endpoint:

1. Create a hold and take note of its id

2. Without the patch, do a POST request to /api/v1/holds/{id}/suspension with
no body

3. Take note that it returns the current date as end_date. Check in the
database that reserves.suspend_until is actually null.

4. Apply the patch and do the POST request again. 

5. Verify that the response now contains null as end_date.

6. Make another POST request to /api/v1/holds/{id}/suspension with the
following JSON body (use tomorrow as the date):
{
  "end_date": "2020-xx-yy"
}

7. Verify that the response reflects the given date. Verify that the database
also has the given date in reserves.suspend_until field.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list