Bugzilla – Attachment 86388 Details for
Bug 22483
haspermissions previously supported passing 'undef' for $flagsrequired
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22483: (follow-up) Fix wrong tests higlighted by bug
Bug-22483-follow-up-Fix-wrong-tests-higlighted-by-.patch (text/plain), 1.36 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-03-08 16:46:32 UTC
(
hide
)
Description:
Bug 22483: (follow-up) Fix wrong tests higlighted by bug
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-03-08 16:46:32 UTC
Size:
1.36 KB
patch
obsolete
>From 4e8e4673918a311754c4c135f922e7ce24e22d0a Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 8 Mar 2019 13:45:03 -0300 >Subject: [PATCH] Bug 22483: (follow-up) Fix wrong tests higlighted by bug > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/api/v1/patrons_password.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/api/v1/patrons_password.t b/t/db_dependent/api/v1/patrons_password.t >index b704761c08..10b1821930 100644 >--- a/t/db_dependent/api/v1/patrons_password.t >+++ b/t/db_dependent/api/v1/patrons_password.t >@@ -141,7 +141,7 @@ subtest 'set_public() (unprivileged user tests)' => sub { > > my $tx = $t->ua->build_tx( > POST => "/api/v1/public/patrons/" >- . $other_patron->id >+ . $patron->id > . "/password" => json => { > password => $new_password, > password_repeated => $new_password, >@@ -175,8 +175,8 @@ subtest 'set_public() (unprivileged user tests)' => sub { > $tx->req->env( { REMOTE_ADDR => '127.0.0.1' } ); > $t->request_ok($tx) > ->status_is(403) >- ->json_is({ >- error => "Changing other patron's password is forbidden" >+ ->json_has({ >+ error => "Authorization failure. Missing required permission(s)." > }); > > $tx = $t->ua->build_tx( >-- >2.21.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 22483
:
86379
|
86380
|
86385
|
86386
|
86388
|
86389
|
86390
|
86391
|
86392
|
86393
|
86394
|
86395
|
86407
|
86408
|
86409
|
86410