[Koha-bugs] [Bug 13262] Add parameters to XSLT Handler transform method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 21 15:54:04 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13262

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA
                 CC|                            |kyle at bywatersolutions.com

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
Got a very odd UT failure:
not ok 26 - Successfully injected string into XSLT parameter/variable

#   Failed test 'Successfully injected string into XSLT parameter/variable'
#   at t/db_dependent/XSLT_Handler.t line 128.
# An error occurred while using eq:
# ------------------------------------
# Operation "eq": no method found,
#     left argument in overloaded package XML::LibXML::NodeList,
#     right argument has no overloaded magic at (eval in cmp_ok)
t/db_dependent/XSLT_Handler.t line 128.
#
# ------------------------------------
#          got: 'this is a test'
#     expected: 'this is a test'


Full UT Output:

prove -v t/db_dependent/XSLT_Handler.t
t/db_dependent/XSLT_Handler.t ..
1..26
ok 1 - Testing creation of handler object
ok 2 - Engine returns error on no file
ok 3 - Engine returns error on bad file
ok 4 - Test on invalid refresh
ok 5 - Found my test stylesheet test01.xsl
ok 6 - Engine returns error on undefined text
No XSLT file passed. at Koha/XSLT_Handler.pm line 322.
XSLT file not found. at Koha/XSLT_Handler.pm line 322.
No string to transform. at Koha/XSLT_Handler.pm line 322.
Error while parsing input: Empty String at Koha/XSLT_Handler.pm line 179.
ok 7 - Engine returns error on empty string
Error while parsing input: :1: parser error : Start tag expected, '<' not found
abcdef
^
ok 8 - Engine returns error on non-xml
Error while parsing input: :1: parser error : Opening and ending tag mismatch:
a line 1 and b
<a></b>
       ^
ok 9 - Engine returns error on malformed xml
Error while parsing input: :1: parser error : Opening and ending tag mismatch:
a line 1 and b
<a></b>
       ^
ok 10 - Engine respects do_not_return_source==1
Error while parsing input: :1: parser error : Opening and ending tag mismatch:
a line 1 and b
<a></b>
       ^
ok 11 - Second engine respects it too
Error while parsing input: :1: parser error : Opening and ending tag mismatch:
a line 1 and b
<a></b>
       ^
ok 12 - Engine respects do_not_return_source==0
ok 13 - Test on valid refresh
ok 14 - Test on repeated refresh
ok 15 - Engine returned no error for xml_1
ok 16 - No real change expected for xml_1
ok 17 - Engine returned no error for xml_2
ok 18 - Saw the expected change for xml_2
ok 19 - Found my test stylesheet test02.xsl
ok 20 - Engine returned error for parsing bad xsl
ok 21 - Error string contains text
ok 22 - Found my test stylesheet test03.xsl
ok 23 - Unexpected error on transform with third xsl
ok 24 - Final test on clearing cache
ok 25 - Found my test stylesheet test04.xsl
not ok 26 - Successfully injected string into XSLT parameter/variable
Error while parsing stylesheet: compilation error: file
/var/lib/koha/kohaqa/kohaclone/t/db_dependent/XSLT_Handler/test02.xsl element
variable
redefinition of global variable redefine
 at Koha/XSLT_Handler.pm line 274.

#   Failed test 'Successfully injected string into XSLT parameter/variable'
#   at t/db_dependent/XSLT_Handler.t line 128.
# An error occurred while using eq:
# ------------------------------------
# Operation "eq": no method found,
#     left argument in overloaded package XML::LibXML::NodeList,
#     right argument has no overloaded magic at (eval in cmp_ok)
t/db_dependent/XSLT_Handler.t line 128.
#
# ------------------------------------
#          got: 'this is a test'
#     expected: 'this is a test'
# Looks like you failed 1 test of 26.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/26 subtests

Test Summary Report
-------------------
t/db_dependent/XSLT_Handler.t (Wstat: 256 Tests: 26 Failed: 1)
  Failed test:  26
  Non-zero exit status: 1
Files=1, Tests=26,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.05 cusr  0.00
csys =  0.08 CPU)
Result: FAIL

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list