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> |
||
|---|---|---|
| .. | ||
| 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 | ||
| erm_agreements.t | ||
| erm_documents.t | ||
| erm_eholdings_packages.t | ||
| erm_eholdings_resources.t | ||
| erm_eholdings_titles.t | ||
| erm_licenses.t | ||
| erm_users.t | ||
| holds.t | ||
| idp.t | ||
| illrequests.t | ||
| import_batch_profiles.t | ||
| import_record_matches.t | ||
| item_groups.t | ||
| items.t | ||
| jobs.t | ||
| libraries.t | ||
| oauth.t | ||
| pagination.t | ||
| password_validation.t | ||
| patrons.t | ||
| patrons_accounts.t | ||
| patrons_extended_attributes.t | ||
| patrons_holds.t | ||
| patrons_password.t | ||
| patrons_password_expiration.t | ||
| query.t | ||
| return_claims.t | ||
| search_filters.t | ||
| smtp_servers.t | ||
| stockrotationstage.t | ||
| suggestions.t | ||
| transfer_limits.t | ||
| two_factor_auth.t | ||
| unhandled_exceptions.t | ||