Bug 33089 - Koha/Plugins/authority_hooks.t is failing if SearchEngine=elastic
Summary: Koha/Plugins/authority_hooks.t is failing if SearchEngine=elastic
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal (vote)
Assignee: Chris Cormack
QA Contact: Testopia
URL:
Keywords:
Depends on: 27173
Blocks:
  Show dependency treegraph
 
Reported: 2023-02-28 15:55 UTC by Jonathan Druart
Modified: 2023-02-28 15:55 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2023-02-28 15:55:31 UTC
t/db_dependent/Koha/Plugins/authority_hooks.t .. 1/4 
    #   Failed test 'AddAuthority calls the hook with action=create, id passed'
    #   at t/db_dependent/Koha/Plugins/authority_hooks.t line 57.
    # found warning: Cannot determine authority type for record: 1708 at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 567.
    # found warning: Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'after_authority_action called with action: create, id: 1708'
    # expected to find warning: (?^u:after_authority_action called with action: create, id: \d+)

    #   Failed test 'ModAuthority calls the hook with action=modify, id passed'
    #   at t/db_dependent/Koha/Plugins/authority_hooks.t line 61.
    # found warning: Cannot determine authority type for record: 1708 at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 567.
    # found warning: Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'after_authority_action called with action: modify, id: 1708'
    # expected to find warning: (?^u:after_authority_action called with action: modify, id: 1708)
    # Looks like you failed 2 tests of 3.
t/db_dependent/Koha/Plugins/authority_hooks.t .. 4/4 
#   Failed test 'after_authority_action hook'
#   at t/db_dependent/Koha/Plugins/authority_hooks.t line 70.
# Looks like you failed 1 test of 4.