Bugzilla – Attachment 105784 Details for
Bug 25037
Add checkout_type to checkouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25037: (follow-up) Fix checkout_type property description
Bug-25037-follow-up-Fix-checkouttype-property-desc.patch (text/plain), 1.97 KB, created by
Joonas Kylmälä
on 2020-06-12 09:47:59 UTC
(
hide
)
Description:
Bug 25037: (follow-up) Fix checkout_type property description
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2020-06-12 09:47:59 UTC
Size:
1.97 KB
patch
obsolete
>From ca796499176246562e27ff5476c612eabb12bff6 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Mon, 8 Jun 2020 11:17:46 +0000 >Subject: [PATCH] Bug 25037: (follow-up) Fix checkout_type property description >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Also adds a test of the property to checkouts.t REST test. > >To test: >1. prove t/db_dependent/api/v1/checkouts.t > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> >--- > api/v1/swagger/definitions/checkout.json | 6 +++++- > t/db_dependent/api/v1/checkouts.t | 3 ++- > 2 files changed, 7 insertions(+), 2 deletions(-) > >diff --git a/api/v1/swagger/definitions/checkout.json b/api/v1/swagger/definitions/checkout.json >index c925c452ac..d2a7fe696a 100644 >--- a/api/v1/swagger/definitions/checkout.json >+++ b/api/v1/swagger/definitions/checkout.json >@@ -54,7 +54,11 @@ > }, > "checkout_type": { > "type": ["string", "null"], >- "description": "Checkout type, an authorised value under CHECKOUT_TYPE category" >+ "enum": [ >+ "CHECKOUT", >+ "ONSITE" >+ ], >+ "description": "Checkout type" > }, > "note": { > "type": ["string", "null"], >diff --git a/t/db_dependent/api/v1/checkouts.t b/t/db_dependent/api/v1/checkouts.t >index 5f7f4ed2fe..f6c06ecad8 100644 >--- a/t/db_dependent/api/v1/checkouts.t >+++ b/t/db_dependent/api/v1/checkouts.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 93; >+use Test::More tests => 94; > use Test::MockModule; > use Test::Mojo; > use t::lib::Mocks; >@@ -170,6 +170,7 @@ $t->get_ok( "//$userid:$password@/api/v1/checkouts/" . $issue1->issue_id) > ->json_is('/patron_id' => $patron_id) > ->json_is('/item_id' => $item1->itemnumber) > ->json_is('/due_date' => output_pref({ dateformat => "rfc3339", dt => $date_due1 }) ) >+ ->json_is('/checkout_type' => $issue1->checkout_type) > ->json_hasnt('/1'); > > $t->get_ok( "//$userid:$password@/api/v1/checkouts/" . $issue1->issue_id) >-- >2.11.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 25037
:
102259
|
102260
|
102261
|
102262
|
102263
|
102264
|
102265
|
102266
|
102267
|
102268
|
102269
|
102272
|
102413
|
102414
|
102415
|
102416
|
102417
|
102418
|
102419
|
102420
|
102421
|
102422
|
102423
|
102424
|
102586
|
102587
|
102588
|
102589
|
102590
|
102591
|
102592
|
102593
|
102594
|
102595
|
102596
|
102597
|
102598
|
102599
|
102655
|
102656
|
102657
|
102658
|
102659
|
102660
|
102661
|
102662
|
102663
|
102664
|
102665
|
102666
|
102675
|
102676
|
104267
|
104268
|
105638
|
105780
|
105781
|
105782
|
105783
| 105784