Bugzilla – Attachment 99437 Details for
Bug 19821
Run tests on a separate database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19821: Install sample data, ES mappings and Version syspref
Bug-19821-Install-sample-data-ES-mappings-and-Vers.patch (text/plain), 2.07 KB, created by
Bouzid Fergani
on 2020-02-21 20:21:45 UTC
(
hide
)
Description:
Bug 19821: Install sample data, ES mappings and Version syspref
Filename:
MIME Type:
Creator:
Bouzid Fergani
Created:
2020-02-21 20:21:45 UTC
Size:
2.07 KB
patch
obsolete
>From 842e39a904e5046c0850a6ac8cc8f425e738ca1b Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 16 Feb 2018 16:00:34 +0100 >Subject: [PATCH] Bug 19821: Install sample data, ES mappings and Version > syspref > >Also move .proverc to .proverc.dist, so it cannot be used by accident. > >Different ways to use it: > >1/ prove --rc .proverc.dist > Use defaults > >2/ cp .proverc.dist .proverc && prove > Allows to configure db name, marcflavour, and prove options > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com> >--- > .proverc | 1 - > .proverc.dist | 1 + > t/lib/Bootstrap.pm | 6 +++++- > 3 files changed, 6 insertions(+), 2 deletions(-) > delete mode 100644 .proverc > create mode 100644 .proverc.dist > >diff --git a/.proverc b/.proverc >deleted file mode 100644 >index c5b8cf5..0000000 >--- a/.proverc >+++ /dev/null >@@ -1 +0,0 @@ >--Mt::lib::Bootstrap=database,koha_test >diff --git a/.proverc.dist b/.proverc.dist >new file mode 100644 >index 0000000..d73f363 >--- /dev/null >+++ b/.proverc.dist >@@ -0,0 +1 @@ >+-Mt::lib::Bootstrap=database,koha_test,marcflavour,MARC21 >diff --git a/t/lib/Bootstrap.pm b/t/lib/Bootstrap.pm >index 7fac260..1b70030 100644 >--- a/t/lib/Bootstrap.pm >+++ b/t/lib/Bootstrap.pm >@@ -60,14 +60,18 @@ sub import { > $installer->load_db_schema(); > $installer->set_marcflavour_syspref($args{marcflavour}); > my (undef, $fwklist) = $installer->marc_framework_sql_list('en', $args{marcflavour}); >+ my (undef, $list) = $installer->sample_data_sql_list('en'); > my @frameworks; >- foreach my $fwk (@$fwklist) { >+ foreach my $fwk (@$fwklist, @$list) { > foreach my $framework (@{ $fwk->{frameworks} }) { > push @frameworks, $framework->{fwkfile}; > } > } > my $all_languages = C4::Languages::getAllLanguages(); > $installer->load_sql_in_order($all_languages, @frameworks); >+ require Koha::SearchEngine::Elasticsearch; >+ Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings; >+ $installer->set_version_syspref(); > } > > 1; >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19821
:
69825
|
69842
|
69843
|
69844
|
71817
|
75045
|
75091
|
75092
|
81893
|
81894
|
81895
|
81896
|
81897
|
81898
|
81899
|
81900
|
99435
|
99436
|
99437
|
99438
|
99439
|
99440
|
99441
|
103409
|
103410
|
103411
|
103412
|
103413
|
103414
|
103415
|
105876
|
105877
|
105878
|
105879
|
105880
|
105881
|
105882
|
120417
|
120418
|
120419
|
120420
|
120421
|
120422
|
120423