Bugzilla – Attachment 125909 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.13 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-10-07 18:42:58 UTC
(
hide
)
Description:
Bug 29157: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-10-07 18:42:58 UTC
Size:
1.13 KB
patch
obsolete
>From 55fc860b5d55be4c6588456824c80c339bcd81aa 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> >--- > 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.33.0
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