Bugzilla – Attachment 144953 Details for
Bug 31798
Add POST endpoint for Items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31798: (follow-up) Add duplicate barcode test
Bug-31798-follow-up-Add-duplicate-barcode-test.patch (text/plain), 1.07 KB, created by
Agustín Moyano
on 2023-01-03 17:55:09 UTC
(
hide
)
Description:
Bug 31798: (follow-up) Add duplicate barcode test
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2023-01-03 17:55:09 UTC
Size:
1.07 KB
patch
obsolete
>From fcd61eadf4a513340e078bf37b0696d983b56896 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Tue, 3 Jan 2023 14:53:28 -0300 >Subject: [PATCH] Bug 31798: (follow-up) Add duplicate barcode test > >--- > t/db_dependent/api/v1/biblios.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/biblios.t b/t/db_dependent/api/v1/biblios.t >index 7dbbf859b9..efc3bbcd4f 100755 >--- a/t/db_dependent/api/v1/biblios.t >+++ b/t/db_dependent/api/v1/biblios.t >@@ -715,7 +715,7 @@ subtest 'set_rating() tests' => sub { > }; > > subtest 'add_item() tests' => sub { >- plan tests => 5; >+ plan tests => 7; > > $schema->storage->txn_begin; > >@@ -760,5 +760,12 @@ subtest 'add_item() tests' => sub { > ->status_is(201, 'Item created') > ->json_is('/biblio_id', $biblio_id); > >+ my $item = $builder->build_sample_item(); >+ >+ $t->post_ok("//$userid:$password@/api/v1/biblios/$biblio_id/items" => json => { >+ external_id => $item->barcode, >+ }) >+ ->status_is(500, 'Duplicate barcode'); >+ > $schema->storage->txn_rollback; > }; >-- >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 31798
:
144893
|
144894
|
144952
|
144953
|
144956
|
147463
|
147464
|
147655
|
147656
|
147657
|
150598
|
150599
|
150600
|
150771
|
150772
|
150773
|
150774
|
150775