Koha-clms/t/db_dependent/api/v1
Jonathan Druart e7d40b7a99
Bug 32353: Fix erm_agreements.t
Agreement.vendor_id has a default value defined in TestBuilder, but here
we were assuming there was one.
We should then generate it and pass the value when building the
agreement objects.

The failure was:
koha_1       |     #   Failed test '200 OK'
koha_1       |     #   at t/db_dependent/api/v1/erm_agreements.t line 95.
koha_1       |     #          got: '400'
koha_1       |     #     expected: '200'
koha_1       |
koha_1       |     #   Failed test 'exact match for JSON Pointer ""'
koha_1       |     #   at t/db_dependent/api/v1/erm_agreements.t line 95.
koha_1       |     #     Structures begin differing at:
koha_1       |     #          $got = HASH(0x55cde781a480)
koha_1       |     #     $expected = ARRAY(0x55cde75af9c8)
koha_1       |     # Looks like you failed 2 tests of 32.

400 because we were calling
http://localhost:8081/api/v1/erm/agreements?vendor_id='
which returns {"errors":[{"message":"Expected integer - got string.","path":"\/vendor_id"}],"status":400}%

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-23 07:43:00 -03:00
..
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 Bug 29939: Use the REST API for ratings 2022-08-22 11:31:15 -03:00
cashups.t
…
checkouts.t Bug 30642: Make renewal_type an enum in spec and add test 2023-02-10 11:08:00 -03:00
cities.t
…
clubs_holds.t
…
erm_agreements.t Bug 32353: Fix erm_agreements.t 2023-02-23 07:43:00 -03:00
erm_documents.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_eholdings_packages.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_eholdings_resources.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_eholdings_titles.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_licenses.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_users.t Bug 32240: Prevent erm_users.t to fail if checkout exist 2022-11-17 13:39:44 -03:00
holds.t Bug 24860: (QA follow-up) Add unit tests to cover Koha::REST::V1::Holds::add 2022-11-04 19:41:44 -03:00
idp.t Bug 31378: (QA follow-up) Tidy tests 2022-11-08 14:40:17 -03:00
illrequests.t
…
import_batch_profiles.t
…
import_record_matches.t
…
item_groups.t
…
items.t Bug 31797: Add DELETE /items/:item_id endpoint 2023-01-30 12:20:44 -03:00
jobs.t Bug 30982: API tweaks 2022-09-23 08:57:49 -03:00
libraries.t Bug 29144: Remove opac_info from a few tests 2022-09-16 09:55:20 -03:00
oauth.t
…
pagination.t
…
password_validation.t Bug 30962: (QA follow-up) Rename attribute and simplify tests 2023-02-03 10:30:13 -03:00
patrons.t Bug 32351: Fix t/db_dependent/api/v1/patrons.t 2022-11-30 15:58:19 -03:00
patrons_accounts.t
…
patrons_extended_attributes.t Bug 31381: Add tests 2022-11-30 15:58:13 -03:00
patrons_holds.t Bug 28670: Prevent api/v1/patrons_holds.t to fail randomly 2023-01-18 16:10:19 +00:00
patrons_password.t
…
patrons_password_expiration.t
…
query.t
…
return_claims.t
…
search_filters.t Bug 17170: (QA follow-up) Spec cleanup 2022-10-21 11:15:22 -03:00
smtp_servers.t
…
stockrotationstage.t
…
suggestions.t
…
transfer_limits.t
…
two_factor_auth.t Bug 30588: (QA follow-up) Remove erroneous FIXME 2022-10-21 11:36:59 -03:00
unhandled_exceptions.t
…