Bugzilla – Attachment 155801 Details for
Bug 32942
Suggestion API doesn't support custom statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32942: Regression tests
Bug-32942-Regression-tests.patch (text/plain), 1.33 KB, created by
Martin Renvoize (ashimema)
on 2023-09-18 12:02:14 UTC
(
hide
)
Description:
Bug 32942: Regression tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-09-18 12:02:14 UTC
Size:
1.33 KB
patch
obsolete
>From e99c31ad80c29f7fa6de05b1d8f61a5a93edd53f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 13 Feb 2023 11:54:07 -0300 >Subject: [PATCH] Bug 32942: Regression tests > >Having a custom status shouldn't cause issues > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/api/v1/suggestions.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/suggestions.t b/t/db_dependent/api/v1/suggestions.t >index 30e146516ed..64979eed87c 100755 >--- a/t/db_dependent/api/v1/suggestions.t >+++ b/t/db_dependent/api/v1/suggestions.t >@@ -97,7 +97,7 @@ subtest 'list() tests' => sub { > > subtest 'get() tests' => sub { > >- plan tests => 8; >+ plan tests => 11; > > $schema->storage->txn_begin; > >@@ -133,6 +133,11 @@ subtest 'get() tests' => sub { > "//$userid:$password@/api/v1/suggestions/" . $suggestion->id ) > ->status_is(200)->json_is( $suggestion->to_api ); > >+ $suggestion->STATUS('FREDERIC')->store->discard_changes; >+ >+ $t->get_ok( "//$userid:$password@/api/v1/suggestions/" . $suggestion->id )->status_is(200) >+ ->json_is( $suggestion->to_api ); >+ > $t->get_ok( "//$unauth_userid:$password@/api/v1/suggestions/" > . $suggestion->id )->status_is(403); > >-- >2.41.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 32942
:
146508
|
146592
|
146593
|
146594
|
154642
|
154643
| 155801 |
155802
|
155803
|
155804
|
155805
|
155806
|
155900
|
155901
|
155902
|
155903
|
155904
|
155905
|
155906