Bug 25327: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 4 May 2020 18:43:08 +0000 (15:43 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 11 May 2020 09:02:29 +0000 (10:02 +0100)
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/api/v1/auth.t

index 2daab59..2003ac6 100644 (file)
@@ -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(
         {