This patch adds tests to make sure there's no behavior change regarding error conditions. When requests include wrong x-koha-embed values, a 400 error should be returned, both in our original implementation or relying on the Mojolicious::Plugin::OpenAPI features. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/api/v1/query.t => SUCCESS: Tests pass 3. Apply the rest of the patches 4. Repeat 2 => SUCCESS: Tests still pass 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> |
||
|---|---|---|
| .. | ||
| acquisitions_baskets.t | ||
| acquisitions_funds.t | ||
| acquisitions_orders.t | ||
| acquisitions_vendors.t | ||
| advanced_editor_macros.t | ||
| article_requests.t | ||
| auth.t | ||
| auth_authenticate_api_request.t | ||
| auth_basic.t | ||
| biblios.t | ||
| cashups.t | ||
| checkouts.t | ||
| cities.t | ||
| clubs_holds.t | ||
| holds.t | ||
| illrequests.t | ||
| import_batch_profiles.t | ||
| import_record_matches.t | ||
| items.t | ||
| libraries.t | ||
| oauth.t | ||
| pagination.t | ||
| patrons.t | ||
| patrons_accounts.t | ||
| patrons_extended_attributes.t | ||
| patrons_holds.t | ||
| patrons_password.t | ||
| query.t | ||
| return_claims.t | ||
| smtp_servers.t | ||
| stockrotationstage.t | ||
| suggestions.t | ||
| transfer_limits.t | ||
| unhandled_exceptions.t | ||