Bugzilla – Attachment 157968 Details for
Bug 35167
GET /items* broken if notforloan == 0 and itemtype.notforloan == NULL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35167: Regression tests
Bug-35167-Regression-tests.patch (text/plain), 1.70 KB, created by
Marcel de Rooy
on 2023-10-27 06:15:46 UTC
(
hide
)
Description:
Bug 35167: Regression tests
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-10-27 06:15:46 UTC
Size:
1.70 KB
patch
obsolete
>From 1aaa7dcd8ce7f084ac0675636cf17659efeba216 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 26 Oct 2023 14:56:35 -0300 >Subject: [PATCH] Bug 35167: Regression tests >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/api/v1/items.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/items.t b/t/db_dependent/api/v1/items.t >index 6a22356254..6b72b22ccb 100755 >--- a/t/db_dependent/api/v1/items.t >+++ b/t/db_dependent/api/v1/items.t >@@ -256,7 +256,7 @@ subtest 'list_public() tests' => sub { > > subtest 'get() tests' => sub { > >- plan tests => 30; >+ plan tests => 34; > > $schema->storage->txn_begin; > >@@ -333,6 +333,13 @@ subtest 'get() tests' => sub { > ->json_is( '/not_for_loan_status' => 0, 'not_for_loan_status is 0' ) > ->json_is( '/effective_not_for_loan_status' => 2, 'effective_not_for_loan_status now picks up itemtype level - item-level_itypes:1' ); > >+ $itype->notforloan(undef)->store(); >+ $t->get_ok( "//$userid:$password@/api/v1/items/" . $item->itemnumber )->status_is( 200, 'SWAGGER3.2.2' ) >+ ->json_is( '/not_for_loan_status' => 0, 'not_for_loan_status is 0' )->json_is( >+ '/effective_not_for_loan_status' => 0, >+ 'effective_not_for_loan_status now picks up itemtype level and falls back to 0 because undef' >+ ); >+ > t::lib::Mocks::mock_preference( 'item-level_itypes', 0 ); > $t->get_ok( "//$userid:$password@/api/v1/items/" . $item->itemnumber ) > ->status_is( 200, 'SWAGGER3.2.2' ) >-- >2.30.2
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 35167
:
157948
|
157949
|
157954
|
157955
| 157968 |
157969