Bugzilla – Attachment 104494 Details for
Bug 25327
Cannot access API spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25327: Regression tests
Bug-25327-Regression-tests.patch (text/plain), 1.17 KB, created by
Jonathan Druart
on 2020-05-07 11:36:02 UTC
(
hide
)
Description:
Bug 25327: Regression tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-07 11:36:02 UTC
Size:
1.17 KB
patch
obsolete
>From 03375a0828f0cb2c93c59a304c5298de52e9c52d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 4 May 2020 15:43:08 -0300 >Subject: [PATCH] Bug 25327: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/api/v1/auth.t | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/auth.t b/t/db_dependent/api/v1/auth.t >index 2daab59260..2003ac657c 100644 >--- a/t/db_dependent/api/v1/auth.t >+++ b/t/db_dependent/api/v1/auth.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 2; >+use Test::More tests => 3; > use Test::Mojo; > use Test::Warn; > >@@ -126,6 +126,17 @@ subtest 'CORS support' => sub { > ->header_is( 'Access-control-allow-origin', '*', 'Header set' ); > }; > >+subtest 'spec retrieval tests' => sub { >+ >+ plan tests => 4; >+ >+ $t->get_ok("/api/v1/") >+ ->status_is(200); >+ >+ $t->get_ok("/api/v1/.html") >+ ->status_is(200); >+}; >+ > sub create_user_and_session { > my $user = $builder->build( > { >-- >2.20.1
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 25327
:
104318
|
104319
|
104489
|
104490
| 104494 |
104495
|
106082
|
106083