Bugzilla – Attachment 127650 Details for
Bug 21105
oai.pl returns invalid earliestDatestamp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21105: Fix test if sample data missing
Bug-21105-Fix-test-if-sample-data-missing.patch (text/plain), 1.70 KB, created by
Jonathan Druart
on 2021-11-15 13:53:07 UTC
(
hide
)
Description:
Bug 21105: Fix test if sample data missing
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-11-15 13:53:07 UTC
Size:
1.70 KB
patch
obsolete
>From 68dc35b709f62f756b0620f711ee73da7338b548 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 15 Nov 2021 14:34:03 +0100 >Subject: [PATCH] Bug 21105: Fix test if sample data missing > > # Failed test 'Identify - earliestDatestamp in the right format' > # at t/db_dependent/OAI/Server.t line 182. > # Compared $data->{"Identify"}{"earliestDatestamp"} > # got : '2021-11-15T13:16:09Z' > # expect : '2014-05-07T13:36:23Z' >--- > t/db_dependent/OAI/Server.t | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/OAI/Server.t b/t/db_dependent/OAI/Server.t >index d5ddf5ed752..4888c625c2e 100755 >--- a/t/db_dependent/OAI/Server.t >+++ b/t/db_dependent/OAI/Server.t >@@ -536,7 +536,9 @@ subtest 'Tests for timestamp handling' => sub { > my $timestamp = dt_from_string(undef, 'sql'); > > # Test a bib with one item >- my $biblio1 = $builder->build_sample_biblio(); >+ my $biblio1 = $builder->build_sample_biblio; >+ Koha::Biblios->find($biblio1->biblionumber)->timestamp('1970-05-07 13:36:23')->store; >+ > $sth_metadata->execute($timestamp, $biblio1->biblionumber); > my $item1 = $builder->build_sample_item( > { >@@ -623,7 +625,7 @@ subtest 'Tests for timestamp handling' => sub { > baseURL => 'http://localhost', > compression => 'gzip', > deletedRecord => 'persistent', >- earliestDatestamp => '2014-05-07T13:36:23Z', >+ earliestDatestamp => '1970-05-07T13:36:23Z', > granularity => 'YYYY-MM-DDThh:mm:ssZ', > protocolVersion => '2.0', > repositoryName => 'My Library', >-- >2.25.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 21105
:
119604
|
119692
|
126236
|
126240
|
126241
|
127586
|
127587
|
127588
|
127589
|
127628
|
127644
|
127650
|
127653