https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39637

Lin Wei <lin-wei...@inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lin-wei...@inlibro.com
             Status|Needs Signoff               |Failed QA

--- Comment #7 from Lin Wei <lin-wei...@inlibro.com> ---
# Results before Applying Patch

- Patron search with "a b c d e f g h i j k a a a a a a a a" fails with 414.
- The URL that is expectedly too long.

# Results after Applying Patch

- Patron search with "a b c d e f g h i j k a a a a a a a a" fails with 400.
- The URL is shortened as expected with "search=a b c d e f g h i j k a a a a a
a a a".
- Response is (raw JSON): [{"message":"Malformed query
string","path":"\/query\/search_fields"},{"message":"Malformed query
string","path":"\/query\/search_type"},{"message":"Malformed query
string","path":"\/query\/search"}]
- Tested patron search again with "a b c d e f g h i j k l m n o p q r s t u v
w x y z". Fails also.

# Test Results

prove t/db_dependent/api/v1/patrons.t
t/db_dependent/api/v1/patrons.t ..             # No tests run!

        #   Failed test 'No tests run for subtest "restricted & expired"'
        #   at t/db_dependent/api/v1/patrons.t line 158.
        # Looks like you planned 16 tests but ran 14.
        # Looks like you failed 1 test of 14 run.

    #   Failed test 'librarian access tests'
    #   at t/db_dependent/api/v1/patrons.t line 275.
    # Looks like you planned 3 tests but ran 2.
    # Looks like you failed 1 test of 2 run.
t/db_dependent/api/v1/patrons.t .. 1/8 
#   Failed test 'list() tests'
#   at t/db_dependent/api/v1/patrons.t line 329.
Broken FK constraint
#   Failed test 'no warnings'
#   at /usr/local/share/perl/5.38.2/Test/Builder.pm line 187.
# There were 1 warning(s)
#     Previous test 0 ''
#     DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
execute failed: Cannot add or update a child row: a foreign key constraint
fails (`koha_master_dev_linwei`.`borrower_debarments`, CONSTRAINT
`borrower_debarments_ibfk_2` FOREIGN KEY (`type`) REFERENCES
`restriction_types` (`code`) ON DELETE NO ACTION ON UPDATE CASCADE) at
/inlibro/git/koha-master-dev-linwei/Koha/Object.pm line 174
#  at /inlibro/git/koha-master-dev-linwei/Koha/Object.pm line 179.
#       Koha::Object::catch {...} (DBIx::Class::Exception=HASH(0x60b907ec7050))
called at /usr/share/perl5/Try/Tiny.pm line 123
#       Try::Tiny::try(CODE(0x60b907dfa8d0),
Try::Tiny::Catch=REF(0x60b908006fd8)) called at
/inlibro/git/koha-master-dev-linwei/Koha/Object.pm line 225
#       Koha::Object::store(Koha::Patron::Restriction=HASH(0x60b907e17f50))
called at /inlibro/git/koha-master-dev-linwei/Koha/Patron/Debarments.pm line 80
#       Koha::Patron::Debarments::AddDebarment(HASH(0x60b9080368b8)) called at
t/db_dependent/api/v1/patrons.t line 142
#       main::__ANON__() called at /usr/local/share/perl/5.38.2/Test/Builder.pm
line 368
#       eval {...} called at /usr/local/share/perl/5.38.2/Test/Builder.pm line
368
#       Test::Builder::subtest(Test::Builder=HASH(0x60b8fc0d7f10), "restricted
& expired", CODE(0x60b907f8e7b8)) called at
/usr/local/share/perl/5.38.2/Test/More.pm line 831
#       Test::More::subtest("restricted & expired", CODE(0x60b907f8e7b8))
called at t/db_dependent/api/v1/patrons.t line 158
#       main::__ANON__() called at /usr/local/share/perl/5.38.2/Test/Builder.pm
line 368
#       eval {...} called at /usr/local/share/perl/5.38.2/Test/Builder.pm line
368
#       Test::Builder::subtest(Test::Builder=HASH(0x60b8fc0d7f10), "librarian
access tests", CODE(0x60b907e80918)) called at
/usr/local/share/perl/5.38.2/Test/More.pm line 831
#       Test::More::subtest("librarian access tests", CODE(0x60b907e80918))
called at t/db_dependent/api/v1/patrons.t line 275
#       main::__ANON__() called at /usr/local/share/perl/5.38.2/Test/Builder.pm
line 368
#       eval {...} called at /usr/local/share/perl/5.38.2/Test/Builder.pm line
368
#       Test::Builder::subtest(Test::Builder=HASH(0x60b8fc0d7f10), "list()
tests", CODE(0x60b907fbf120)) called at
/usr/local/share/perl/5.38.2/Test/More.pm line 831
#       Test::More::subtest("list() tests", CODE(0x60b907fbf120)) called at
t/db_dependent/api/v1/patrons.t line 329
# 
# Looks like your test exited with 2 just after 2.
t/db_dependent/api/v1/patrons.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 8/8 subtests 

Test Summary Report
-------------------
t/db_dependent/api/v1/patrons.t (Wstat: 512 (exited 2) Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 8 tests but ran 2.
Files=1, Tests=2,  3 wallclock secs ( 0.01 usr  0.00 sys +  2.56 cusr  0.10
csys =  2.67 CPU)
Result: FAIL

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to