Bugzilla – Attachment 165541 Details for
Bug 35430
Add endpoints for managing stock rotation rota's
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35430: (follow-up) Remove 'me' from query in tests
Bug-35430-follow-up-Remove-me-from-query-in-tests.patch (text/plain), 1.29 KB, created by
Martin Renvoize
on 2024-04-25 12:54:53 UTC
(
hide
)
Description:
Bug 35430: (follow-up) Remove 'me' from query in tests
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2024-04-25 12:54:53 UTC
Size:
1.29 KB
patch
obsolete
>From 71d5e282863cf93fc1263467ebdcba3674d5192e Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 25 Apr 2024 13:54:03 +0100 >Subject: [PATCH] Bug 35430: (follow-up) Remove 'me' from query in tests > >--- > t/db_dependent/api/v1/stockrotation_rotas.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/api/v1/stockrotation_rotas.t b/t/db_dependent/api/v1/stockrotation_rotas.t >index d6ca714bc9a..b56be396d0e 100755 >--- a/t/db_dependent/api/v1/stockrotation_rotas.t >+++ b/t/db_dependent/api/v1/stockrotation_rotas.t >@@ -84,11 +84,11 @@ subtest 'list() tests' => sub { > ); > > # Filtering works, two rotas are active >- my $api_filter = encode_json( { 'me.active' => Mojo::JSON->true } ); >+ my $api_filter = encode_json( { 'active' => Mojo::JSON->true } ); > $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200) > ->json_is( [ $active_rota->to_api, $another_active_rota->to_api ] ); > >- $api_filter = encode_json( { 'me.title' => $active_rota->title } ); >+ $api_filter = encode_json( { 'title' => $active_rota->title } ); > $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200)->json_is( [ $active_rota->to_api ] ); > > # Warn on unsupported query parameter >-- >2.44.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 35430
:
159357
|
159358
|
159359
|
159360
|
159361
|
159362
|
159418
|
159419
|
159420
|
164134
|
164135
|
164136
|
165538
|
165539
|
165540
|
165541
|
168202
|
168203
|
168204