Bugzilla – Attachment 151822 Details for
Bug 33852
jobs.t is not testing only_current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33852: Make jobs.t test the only_current parameter
Bug-33852-Make-jobst-test-the-onlycurrent-paramete.patch (text/plain), 1.18 KB, created by
Sam Lau
on 2023-05-30 18:21:51 UTC
(
hide
)
Description:
Bug 33852: Make jobs.t test the only_current parameter
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-05-30 18:21:51 UTC
Size:
1.18 KB
patch
obsolete
>From eb1bab898ad6da82abfa6684df001481d1b5988d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 29 May 2023 10:30:06 -0300 >Subject: [PATCH] Bug 33852: Make jobs.t test the only_current parameter > >This trivial patch adds a test to the only_current parameter. > >To test: >1. Apply this patch >2. Run: > $ ktd --shell > k$ prove t/db_dependent/api/v1/jobs.t >=> SUCCESS: New tests added, and pass >3. Sign off :-D > >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > t/db_dependent/api/v1/jobs.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/jobs.t b/t/db_dependent/api/v1/jobs.t >index 4d993c68e0..cba230d073 100755 >--- a/t/db_dependent/api/v1/jobs.t >+++ b/t/db_dependent/api/v1/jobs.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 25; >+use Test::More tests => 28; > use Test::Mojo; > > use t::lib::TestBuilder; >@@ -99,6 +99,9 @@ my $job = $builder->build_object( > > $t->get_ok("//$librarian_userid:$password@/api/v1/jobs") > ->status_is(200)->json_is( [ $job->to_api ] ); >+ >+ $t->get_ok("//$librarian_userid:$password@/api/v1/jobs?only_current=1") >+ ->status_is(200)->json_is( [] ); > } > > { >-- >2.30.2
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 33852
:
151774
|
151822
|
152182
|
152183