From ecf68132b7e2eafff0d0dc8991b8ebc52534f75e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 12 Nov 2018 15:03:34 -0300 Subject: [PATCH] Bug 21749: (QA follow-up) Add more tests for ImportFramework This patch adds tests for: - Output of ImportFramework on fields removal and error conditions (file not found) - Different file format behaviour (csv, xml and ods are tested). To test: - Run $ kshell k$ prove t/db_dependent/ImportExportFramework.t => SUCCESS: All green :-D - Sign off :-D Note: the biblio_framework* files are based on the original one on the patchset, and exported in 17.11 with different formats. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- t/db_dependent/ImportExportFramework.t | 100 +++++++++++++++--- .../data/frameworks/biblio_framework.ods | Bin 0 -> 5227 bytes .../data/frameworks/biblio_framework.xml | 28 +++++ .../frameworks/biblio_framework_smaller.csv | 18 ++++ .../frameworks/biblio_framework_smaller.ods | Bin 0 -> 5027 bytes .../frameworks/biblio_framework_smaller.xml | 28 +++++ 6 files changed, 157 insertions(+), 17 deletions(-) create mode 100644 t/db_dependent/data/frameworks/biblio_framework.ods create mode 100644 t/db_dependent/data/frameworks/biblio_framework.xml create mode 100644 t/db_dependent/data/frameworks/biblio_framework_smaller.csv create mode 100644 t/db_dependent/data/frameworks/biblio_framework_smaller.ods create mode 100644 t/db_dependent/data/frameworks/biblio_framework_smaller.xml diff --git a/t/db_dependent/ImportExportFramework.t b/t/db_dependent/ImportExportFramework.t index de096cc2a6..8189183fc4 100644 --- a/t/db_dependent/ImportExportFramework.t +++ b/t/db_dependent/ImportExportFramework.t @@ -1,34 +1,100 @@ #!/usr/bin/perl +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + use Modern::Perl; -use Test::More tests => 3; + +use Test::More tests => 1; + +use t::lib::TestBuilder; + use File::Basename qw( dirname ); use Koha::Database; use Koha::BiblioFrameworks; use Koha::MarcSubfieldStructures; -use t::lib::TestBuilder; use C4::ImportExportFramework; -my $schema = Koha::Database->new->schema; -$schema->storage->txn_begin; +my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; -my $data_filepath = dirname(__FILE__) . '/data/biblio_framework.csv'; +subtest 'ImportFramework() tests' => sub { + + plan tests => 3; + + subtest 'CSV tests' => sub { + plan tests => 9; + + run_tests('csv'); + }; + + subtest 'ODS tests' => sub { + plan tests => 9; + + run_tests('ods'); + }; + + subtest 'XML tests' => sub { + plan tests => 9; + + run_tests('xml'); + }; +}; + +sub run_tests { + + my ($format) = @_; + + $schema->storage->txn_begin; + + my $data_filepath = dirname(__FILE__) . "/data/frameworks/biblio_framework.$format"; + my $fw_1 = $builder->build_object({ class => 'Koha::BiblioFrameworks' }); + + my $result = C4::ImportExportFramework::ImportFramework( $data_filepath, $fw_1->id ); + is( $result, 0, 'Import successful, no tags removed' ); + + my $nb_tags = $schema->resultset('MarcTagStructure')->search({ frameworkcode => $fw_1->id })->count; + is( $nb_tags, 4, "4 tags should have been imported" ); + + my $nb_subfields = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw_1->id })->count; + is( $nb_subfields, 12, "12 subfields should have been imported" ); + + # bad file tests + my $fw_2 = $builder->build_object({ class => 'Koha::BiblioFrameworks' }); + $result = C4::ImportExportFramework::ImportFramework( '', $fw_2->id ); + + is( $result, -1, 'Bad file makes it return -1' ); + + $nb_tags = $schema->resultset('MarcTagStructure')->search({ frameworkcode => $fw_2->id })->count; + is( $nb_tags, 0, "0 tags should have been imported" ); + + $nb_subfields = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw_2->id })->count; + is( $nb_subfields, 0, "0 subfields should have been imported" ); -my $frameworkcode = '4T'; -C4::ImportExportFramework::ImportFramework($data_filepath, $frameworkcode); + # framework overwrite + $data_filepath = dirname(__FILE__) . "/data/frameworks/biblio_framework_smaller.$format"; -my $dbh = C4::Context->dbh; + $result = C4::ImportExportFramework::ImportFramework( $data_filepath, $fw_1->id ); + is( $result, 5, 'Smaller fw import successful, 4 tags removed' ); -# FIXME Import does not create the biblio framework -#my $biblio_framework = Koha::BiblioFrameworks->find($frameworkcode); -#ok( $biblio_framework ); + $nb_tags = $schema->resultset('MarcTagStructure')->search({ frameworkcode => $fw_1->id })->count; + is( $nb_tags, 3, "3 tags should have been imported" ); -my $nb_tags = $dbh->selectrow_array(q|SELECT COUNT(*) FROM marc_tag_structure WHERE frameworkcode="4T"|); -is( $nb_tags, 4, "4 tags should have been imported" ); + $nb_subfields = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw_1->id })->count; + is( $nb_subfields, 8, "8 subfields should have been imported" ); -my $nb_subfields = - Koha::MarcSubfieldStructures->search( { frameworkcode => $frameworkcode } ) - ->count; -is( $nb_subfields, 12, "12 subfields should have been imported" ); + $schema->storage->txn_rollback; +} diff --git a/t/db_dependent/data/frameworks/biblio_framework.ods b/t/db_dependent/data/frameworks/biblio_framework.ods new file mode 100644 index 0000000000000000000000000000000000000000..de157bef6560e99bc337fd6effc2542aa4c46b56 GIT binary patch literal 5227 zcmb7|c|276|HlVonYi{nF|wsD1`%>cM7HeNiNRnpX2jUZz9eK{V{DTxlw`t1$}X~8 zOJq&fY!lin-_iZut4003-!uQ5Gmp>f^*NvS=e(cq_c^+nWI$#B06+z(jznr1pY0H= zCkFtuya51e;=i_N6b6pMh%pOcl&N#S-BdXtjV|?e#Y}f(%=M*w&`Gx626y>ri9O-^V(WqusZQN^}OKhGsGw?F%klnDWcl7Td$Qvld znXPXQzg+fm8>g4h9fanVW-#NX0sWojBs71T56-$@kv(};)yd-ZZIUvse!6v$z_Id*hXH$`LECJE5g_TDRo5hh3&isRmT0s8#u$(773u@H)$XVkPY>1c$@``2Eax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eiHvY_?zIWm>%CZ%c}4JYsj>)pghIll`+yP#d%U7X=4_h0DPkI-SzXrv9y^?y_yO!RBj@gwGf z+1kR9a2N*ttLctfoErv)ad-RmghwsT9*Krw;J=!U>xkQQaYZ}0!rlI#`G{T04_k(C zhB?69ei2I$QKY4EMNvdu`_jL|{(i|-iKX>BOU&I!3IKrR>tW6?6v7_v_T_c=QF8aS zXAqjeHUFq7-x=pZh74Be5he^>j-1A|b)FQ9Q9RbbWXw5CB)`EF9Duch`PM*93|7Pw zw#%7rcZU@93Qszn^O*5}XQXgz>)L~=sm;LVmHE8R&sev%%IFq+ zDiT!MR)%*xB+6I^$>kkG+_j_ImQFsqda=7LFe{Kg+UQA*c8#aMo2%4tRJfAz0wSV) zhLj^g+#N9Cu5?Vc%R7^>G@jGOtn;Whk)J}lD$Im}P9wL8>yuJ&lb7}HKssnaTw&s| z>3kkO{h9%+h8TsznwI$EYRJhBwr*BZ7We0N0gatW7Kzvh!Np6K)O$wHF3Y|Sf>)1+ zJ1FSrbR@axh;HfV@8>QD_&Z#d&Jix(!tm!#2RJ-*x_N}tzi|Ay$pIb@O&W+MU%~Pp+0nQ> hko}#EZ@!j&4NqN7aw1y~o@sgj2nYaNKB&5Y{{Sb?0%-sM literal 0 HcmV?d00001 diff --git a/t/db_dependent/data/frameworks/biblio_framework.xml b/t/db_dependent/data/frameworks/biblio_framework.xml new file mode 100644 index 0000000000..b658aca9f5 --- /dev/null +++ b/t/db_dependent/data/frameworks/biblio_framework.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + +tagfieldliblibrarianlibopacrepeatablemandatoryauthorised_valueframeworkcode000LEADERLEADER01#T4001CONTROL NUMBERCONTROL NUMBER00#T4003CONTROL NUMBER IDENTIFIERCONTROL NUMBER IDENTIFIER01#T4010LIBRARY OF CONGRESS CONTROL NUMBERLIBRARY OF CONGRESS CONTROL NUMBER00#T4tagfieldtagsubfieldliblibrarianlibopacrepeatablemandatorykohafieldtabauthorised_valueauthtypecodevalue_builderisurlhiddenframeworkcodeseealsolinkdefaultvaluemaxlength000@fixed length control fieldfixed length control field01#0##marc21_leader.pl00T4###24001@control fieldcontrol field00#0###00T4###9999003@control fieldcontrol field01#0##marc21_orgcode.pl00T4###9999005@control fieldcontrol field01#0##marc21_field_005.pl00T4###9999006@fixed length control fieldfixed length control field00#0##marc21_field_006.pl0-1T4###9999007@fixed length control fieldfixed length control field00#0##marc21_field_007.pl00T4###9999008@fixed length control fieldfixed length control field01#0##marc21_field_008.pl00T4###40009@fixed length control fieldfixed length control field00#0###0-6T4###99990108Field link and sequence numberField link and sequence number10#0###0-6T4###9999010aLC control numberLC control number00biblioitems.lccn0###00T4###9999010bNUCMC control numberNUCMC control number10#0###0-1T4###9999010zCanceled/invalid LC control numberCanceled/invalid LC control number10#0###0-1T4###9999 diff --git a/t/db_dependent/data/frameworks/biblio_framework_smaller.csv b/t/db_dependent/data/frameworks/biblio_framework_smaller.csv new file mode 100644 index 0000000000..876410abae --- /dev/null +++ b/t/db_dependent/data/frameworks/biblio_framework_smaller.csv @@ -0,0 +1,18 @@ +"tagfield","liblibrarian","libopac","repeatable","mandatory","authorised_value","frameworkcode" +"000","LEADER","LEADER","0","1","","T5" +"001","CONTROL NUMBER","CONTROL NUMBER","0","0","","T5" +"003","CONTROL NUMBER IDENTIFIER","CONTROL NUMBER IDENTIFIER","0","1","","T5" + +"#-#","#-#","#-#","#-#","#-#","#-#","#-#" + +"tagfield","tagsubfield","liblibrarian","libopac","repeatable","mandatory","kohafield","tab","authorised_value","authtypecode","value_builder","isurl","hidden","frameworkcode","seealso","link","defaultvalue","maxlength" +"000","@","fixed length control field","fixed length control field","0","1","","0","","","marc21_leader.pl","0","0","T5","","","","24" +"001","@","control field","control field","0","0","","0","","","","0","0","T5","","","","9999" +"003","@","control field","control field","0","1","","0","","","marc21_orgcode.pl","0","0","T5","","","","9999" +"005","@","control field","control field","0","1","","0","","","marc21_field_005.pl","0","0","T5","","","","9999" +"007","@","fixed length control field","fixed length control field","0","0","","0","","","marc21_field_007.pl","0","0","T5","","","","9999" +"008","@","fixed length control field","fixed length control field","0","1","","0","","","marc21_field_008.pl","0","0","T5","","","","40" +"010","8","Field link and sequence number","Field link and sequence number","1","0","","0","","","","0","-6","T5","","","","9999" +"010","b","NUCMC control number","NUCMC control number","1","0","","0","","","","0","-1","T5","","","","9999" + +"#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#","#-#" diff --git a/t/db_dependent/data/frameworks/biblio_framework_smaller.ods b/t/db_dependent/data/frameworks/biblio_framework_smaller.ods new file mode 100644 index 0000000000000000000000000000000000000000..99c5642bf62a9e8c5679ebb6109ec306a26dc0d8 GIT binary patch literal 5027 zcmb7|c|4Ts`^U$=X34%}%MyvPRLIiUjV=3HW@Io7W0|oRV~-MIrj8idDU{TpWZ$!< zL?MnWlPzQ``i{=;9Mw_3@AvuZndfzXKG$!y-_f4luVEpV!?6Te?*Dp@{-fUo!%th%Zkx-@TCD4aRuSbIWdI| zENca0R(q-`mSSt^_;5q2crr?7azFCZFNOip6^Xp86ST;j^$?Wt_x7r zcrk7wnz9(5KA3%uZzV`^+B$L>60IGn?9v7=xZWv!V*&0e21iXsOutZ@-?(0zQwr}T zl=Rv)v%VOdutw7YrPWOSM4PaMJd;p#T$669WDJ{&M@2Qv<9| z=1G@J=XFKjN9gxHEvN(wSlK;X4kAh#92+R)BaeRz0NvY&xN52?n?tA_rMciJH6EX-6I0+H9G)8?B?QZA9yn5Ry*js5@gt zrp=8zPN}3N6K>Ev>wGSyFC@Lp%(Om+wGqQ_CH`j0SyFl90@Y-9=Q5J4d9qKBjoOwn zp8RG0bOf9nLS;eE*dUiCl*}ikEv7)pOCeIB0F$ME$j%eVE&We`i*6o6w>6yS%fojOs!s6~{g2T)r^b0{C!7BJk!v;!V*M>4w zU|VlHSZTySU*)t@`Qjq740%eguwbA?(oSZ0Xt-aj?ihLik!r)6Sr*v5+=aFV;xrvx zh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W(3Ps>-uVw>cC6>ekX?# zVl}mA;c@MgKAyhEVbK`v0T+-phyQ-Hzzp<`ngMZU1yr(4SbyVobGvsUF#+z zv?v{JF>OE7M60^6!rO zv+CzQy04nqQ~h68{aN*M57<{hNiAW&Bkb!A#?hV*0AK+ufS5>|@qfeV@1*`)y;s41 zU3+TP1JvKc>eoJd6}|6+I>2WiUjMC2$pJ3=F#EO39?tgP<=p`;KfvwRMn5Kp=g_}X z`#tP_?ek-D%ntC`hu^PV_VBkqt+)eReuUw#o%V3J@6>RB(?4+hwaFeH_f6JGCf~vG nZ`r}P+>`xPj7ONhlYI}*bB0tTw(k9>SpamT&v4Pqd%ykzxrUDd literal 0 HcmV?d00001 diff --git a/t/db_dependent/data/frameworks/biblio_framework_smaller.xml b/t/db_dependent/data/frameworks/biblio_framework_smaller.xml new file mode 100644 index 0000000000..cff72b8026 --- /dev/null +++ b/t/db_dependent/data/frameworks/biblio_framework_smaller.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + +tagfieldliblibrarianlibopacrepeatablemandatoryauthorised_valueframeworkcode000LEADERLEADER01#T5001CONTROL NUMBERCONTROL NUMBER00#T5003CONTROL NUMBER IDENTIFIERCONTROL NUMBER IDENTIFIER01#T5tagfieldtagsubfieldliblibrarianlibopacrepeatablemandatorykohafieldtabauthorised_valueauthtypecodevalue_builderisurlhiddenframeworkcodeseealsolinkdefaultvaluemaxlength000@fixed length control fieldfixed length control field01#0##marc21_leader.pl00T5###24001@control fieldcontrol field00#0###00T5###9999003@control fieldcontrol field01#0##marc21_orgcode.pl00T5###9999005@control fieldcontrol field01#0##marc21_field_005.pl00T5###9999007@fixed length control fieldfixed length control field00#0##marc21_field_007.pl00T5###9999008@fixed length control fieldfixed length control field01#0##marc21_field_008.pl00T5###400108Field link and sequence numberField link and sequence number10#0###0-6T5###9999010bNUCMC control numberNUCMC control number10#0###0-1T5###9999 -- 2.39.5