Bugzilla – Attachment 81896 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.03 KB, created by
Martin Renvoize (ashimema)
on 2018-11-02 14:36:16 UTC
(
hide
)
Description:
Bug 19821: Install sample data, ES mappings and Version syspref
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-11-02 14:36:16 UTC
Size:
2.03 KB
patch
obsolete
>From 024b1d9208e21695ea42819ae9f448e3f9ba007a 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> >--- > .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.19.1
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