Bug 33089

Summary: Koha/Plugins/authority_hooks.t is failing if SearchEngine=elastic
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 27173    
Bug Blocks:    

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.