Bugzilla – Attachment 125994 Details for
Bug 29157
Cannot set date/date-time attributes to NULL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29157: Regression tests
Bug-29157-Regression-tests.patch (text/plain), 1.18 KB, created by
David Nind
on 2021-10-09 20:14:23 UTC
(
hide
)
Description:
Bug 29157: Regression tests
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-10-09 20:14:23 UTC
Size:
1.18 KB
patch
obsolete
>From d976b1705387e187f98d839b0a0d1b8c81619c0b Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 7 Oct 2021 15:16:01 -0300 >Subject: [PATCH] Bug 29157: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: David Nind <david@davidnind.com> >--- > t/db_dependent/api/v1/patrons.t | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t >index dbe6c1bbc5..6f38a92b59 100755 >--- a/t/db_dependent/api/v1/patrons.t >+++ b/t/db_dependent/api/v1/patrons.t >@@ -475,6 +475,12 @@ subtest 'update() tests' => sub { > $newpatron->{ userid } = "user" . $patron_1->id.$patron_2->id; > $newpatron->{ surname } = "user" . $patron_1->id.$patron_2->id; > >+ ## Trying to set to null on specially handled cases >+ # Special case: a date >+ $newpatron->{ date_of_birth } = undef; >+ # Special case: a date-time >+ $newpatron->{ last_seen } = undef; >+ > my $result = $t->put_ok( "//$userid:$password@/api/v1/patrons/" . $patron_2->borrowernumber => json => $newpatron ) > ->status_is(200, 'Patron updated successfully'); > >-- >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 29157
:
125644
|
125909
|
125910
|
125994
|
125995
|
126128
|
126129
|
126220
|
126221
|
126237
|
126238