Bugzilla – Attachment 102010 Details for
Bug 23204
Add script for exporting Elasticsearch mappings to YAML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23204: Fix tests swapping fields (they are not ordered)
Bug-23204-Fix-tests-swapping-fields-they-are-not-o.patch (text/plain), 2.52 KB, created by
Jonathan Druart
on 2020-03-27 15:37:28 UTC
(
hide
)
Description:
Bug 23204: Fix tests swapping fields (they are not ordered)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-27 15:37:28 UTC
Size:
2.52 KB
patch
obsolete
>From ee8c80d1b0e1eb18ad956dbdf48ea36443c174d6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 27 Mar 2020 16:36:08 +0100 >Subject: [PATCH] Bug 23204: Fix tests swapping fields (they are not ordered) > >--- > .../SearchEngine/Elasticsearch/ExportConfig.t | 26 +++++++++---------- > 1 file changed, 13 insertions(+), 13 deletions(-) > >diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t >index 4fc461a25a..b065b92dfe 100644 >--- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t >+++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t >@@ -95,19 +95,19 @@ is( $mappings->{biblios}{title}{facet_order}, undef, 'Facet order is undef'); > > is(scalar(@{ $mappings->{biblios}{title}{mappings} }), 3, 'Title has 3 mappings'); > >-my $f247_map = $mappings->{biblios}{title}{mappings}[0]; >-is( $f247_map->{marc_field}, 247, 'First mapping is on field 247'); >-is( $f247_map->{marc_type}, 'marc21', 'First mapping is for marc21'); >-is( $f247_map->{facet}, '', 'First mapping facet is empty'); >-is( $f247_map->{suggestible}, '', 'First mapping is not suggestible'); >-is( $f247_map->{sort}, undef, 'First mapping is not sortable'); >- >-my $f212_map = $mappings->{biblios}{title}{mappings}[1]; >-is( $f212_map->{marc_field}, 212, 'Second mapping is on field 247'); >-is( $f212_map->{marc_type}, 'marc21', 'Second mapping is for marc21'); >-is( $f212_map->{facet}, '', 'Second mapping facet is empty'); >-is( $f212_map->{suggestible}, '', 'Second mapping is not suggestible'); >-is( $f212_map->{sort}, undef, 'Second mapping is not sortable'); >+my $f212_map = $mappings->{biblios}{title}{mappings}[0]; >+is( $f212_map->{marc_field}, 212, 'First mapping is on field 212'); >+is( $f212_map->{marc_type}, 'marc21', 'First mapping is for marc21'); >+is( $f212_map->{facet}, '', 'First mapping facet is empty'); >+is( $f212_map->{suggestible}, '', 'First mapping is not suggestible'); >+is( $f212_map->{sort}, undef, 'First mapping is not sortable'); >+ >+my $f247_map = $mappings->{biblios}{title}{mappings}[1]; >+is( $f247_map->{marc_field}, 247, 'Second mapping is on field 247'); >+is( $f247_map->{marc_type}, 'marc21', 'Second mapping is for marc21'); >+is( $f247_map->{facet}, '', 'Second mapping facet is empty'); >+is( $f247_map->{suggestible}, '', 'Second mapping is not suggestible'); >+is( $f247_map->{sort}, undef, 'Second mapping is not sortable'); > > $mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings('unimarc'); > >-- >2.20.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 23204
:
90999
|
91350
|
92022
|
92023
|
92024
|
92174
|
93524
|
95986
|
100960
|
100961
|
100962
|
100963
|
100964
|
100965
|
101742
|
101850
|
101851
|
101852
|
101853
|
101854
|
101855
|
101856
|
101857
|
101858
| 102010