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

Bernard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |.uk
             Status|Needs Signoff               |Signed Off

--- Comment #3 from Bernard <[email protected]> ---
kohadev-koha@kohadevbox:koha(bug_35722)$ prove
t/db_dependent/api/v1/items/item_transfers.t
t/db_dependent/api/v1/items/item_transfers.t .. ok
All tests successful.
Files=1, Tests=5, 10 wallclock secs ( 0.03 usr  0.01 sys +  7.95 cusr  0.70
csys =  8.69 CPU)
Result: PASS
kohadev-koha@kohadevbox:koha(bug_35722)$

Tested 

list
get
add
cancel


1. Ensured RESTBasicAuth enabled
2. Installed patch
3. Put an item in transfer in staff intranet. Circulation dashboard, click
Transfer. Ensure item is in list of Transferred items.
4. Got itenumber from step 3 and did a curl request: curl --request GET
"http://127.0.0.1:8080/api/v1/items/312/transfers"; --header "Content-Type:
application/json" --user u:p
5. Observed details: to_library_id and from_library_id match step above. Date
requested and sent are set - PASS
6. Cancel request from the API

curl --request DELETE "http://127.0.0.1:8080/api/v1/items/312/transfers";
--header "Content-Type: application/json" --user u:p

7. Listed as in step 4
8. Noted cancellation date added and request cancelled - PASS
9. Added new request

curl --request POST "http://127.0.0.1:8080/api/v1/items/313/transfers"; --header
"Content-Type: application/json" --user u:p --data-raw '{ "to_library_id":
"FFL", "reason": "Manual" }'

10. Request added same as if via staff intranet - PASS
11. Tried to add a request for a staff user without permission
reserveforothers: place_holds (Place holds for patrons) (edited user's
permissions)
10. Repeated step 9 with another itemnumber.
11. Observed {"error":"Invalid password","required_permissions":null} - PASS
12. Listed all requests 

curl --request GET "http://127.0.0.1:8080/api/v1/items/transfers"; --header
"Content-Type: application/json" --user u:p

13. Observed list of requests returned - PASS

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to