Bugzilla – Attachment 105692 Details for
Bug 22522
API authentication breaks with updated Mojolicious version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[19.11.x] Bug 22522: Adjust tests to previous changes
1911x-Bug-22522-Adjust-tests-to-previous-changes.patch (text/plain), 3.00 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-06-10 13:12:47 UTC
(
hide
)
Description:
[19.11.x] Bug 22522: Adjust tests to previous changes
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-06-10 13:12:47 UTC
Size:
3.00 KB
patch
obsolete
>From a447824350b5a9ded4eaaa269e965b3a18b9cff6 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 10 Jun 2020 10:11:52 -0300 >Subject: [PATCH] [19.11.x] Bug 22522: Adjust tests to previous changes > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/REST/Plugin/Objects.t | 24 +++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > >diff --git a/t/db_dependent/Koha/REST/Plugin/Objects.t b/t/db_dependent/Koha/REST/Plugin/Objects.t >index 13f9a648ead..9551fff64f0 100644 >--- a/t/db_dependent/Koha/REST/Plugin/Objects.t >+++ b/t/db_dependent/Koha/REST/Plugin/Objects.t >@@ -31,7 +31,7 @@ plugin 'Koha::REST::Plugin::Pagination'; > get '/cities' => sub { > my $c = shift; > $c->validation->output($c->req->params->to_hash); >- my $cities = $c->objects->search(Koha::Cities->new); >+ my $cities = $c->objects->search(Koha::Cities->new, \&to_model ); > $c->render( status => 200, json => $cities ); > }; > >@@ -152,18 +152,18 @@ subtest 'objects.search helper' => sub { > }); > > # _match=starts_with >- $t->get_ok('/cities?name=manuel&_per_page=4&_page=1&_match=starts_with') >+ $t->get_ok('/cities?nombre=manuel&_per_page=4&_page=1&_match=starts_with') > ->status_is(200) > ->json_has('/0') > ->json_has('/1') > ->json_has('/2') > ->json_hasnt('/3') >- ->json_is('/0/name' => 'Manuel') >- ->json_is('/1/name' => 'Manuela') >- ->json_is('/2/name' => 'Manuelab'); >+ ->json_is('/0/city_name' => 'Manuel') >+ ->json_is('/1/city_name' => 'Manuela') >+ ->json_is('/2/city_name' => 'Manuelab'); > > # _match=ends_with >- $t->get_ok('/cities?name=manuel&_per_page=4&_page=1&_match=ends_with') >+ $t->get_ok('/cities?nombre=manuel&_per_page=4&_page=1&_match=ends_with') > ->status_is(200) > ->json_has('/0') > ->json_has('/1') >@@ -172,24 +172,24 @@ subtest 'objects.search helper' => sub { > ->json_is('/1/city_name' => 'Emanuel'); > > # _match=exact >- $t->get_ok('/cities?name=manuel&_per_page=4&_page=1&_match=exact') >+ $t->get_ok('/cities?nombre=manuel&_per_page=4&_page=1&_match=exact') > ->status_is(200) > ->json_has('/0') > ->json_hasnt('/1') > ->json_is('/0/city_name' => 'Manuel'); > > # _match=contains >- $t->get_ok('/cities?name=manuel&_per_page=4&_page=1&_match=contains') >+ $t->get_ok('/cities?nombre=manuel&_per_page=4&_page=1&_match=contains') > ->status_is(200) > ->json_has('/0') > ->json_has('/1') > ->json_has('/2') > ->json_has('/3') > ->json_hasnt('/4') >- ->json_is('/0/name' => 'Manuel') >- ->json_is('/1/name' => 'Manuela') >- ->json_is('/2/name' => 'Manuelab') >- ->json_is('/3/name' => 'Emanuel'); >+ ->json_is('/0/city_name' => 'Manuel') >+ ->json_is('/1/city_name' => 'Manuela') >+ ->json_is('/2/city_name' => 'Manuelab') >+ ->json_is('/3/city_name' => 'Emanuel'); > > $schema->storage->txn_rollback; > }; >-- >2.27.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 22522
:
86756
|
93592
|
98061
|
98089
|
98372
|
98557
|
98558
|
98559
|
98665
|
98666
|
98667
|
99181
|
99182
|
99183
|
105591
|
105639
|
105657
|
105658
|
105659
| 105692