Bugzilla – Attachment 71817 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), 1.97 KB, created by
Julian Maurice
on 2018-02-16 15:19:38 UTC
(
hide
)
Description:
Bug 19821: Install sample data, ES mappings and Version syspref
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-02-16 15:19:38 UTC
Size:
1.97 KB
patch
obsolete
>From 89d5c13c1214ca7aaac7fd28ec8d992ac27d3ed5 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 >--- > .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 c5b8cf5053..0000000000 >--- 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 0000000000..d73f363141 >--- /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 7fac260b99..1b70030536 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.14.2
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