Bugzilla – Attachment 168707 Details for
Bug 33227
OpenAPI validation is failing for paths/biblios.yaml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33227: (follow-up) Set test to failed if swagger-cli missing
Bug-33227-follow-up-Set-test-to-failed-if-swagger-.patch (text/plain), 987 bytes, created by
Martin Renvoize (ashimema)
on 2024-07-10 10:13:39 UTC
(
hide
)
Description:
Bug 33227: (follow-up) Set test to failed if swagger-cli missing
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-07-10 10:13:39 UTC
Size:
987 bytes
patch
obsolete
>From 8f40d13441219a932bb0cc31304516e81bc9858f Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 10 Jul 2024 11:12:56 +0100 >Subject: [PATCH] Bug 33227: (follow-up) Set test to failed if swagger-cli > missing > >--- > xt/api.t | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >diff --git a/xt/api.t b/xt/api.t >index 3165f8ff6e5..8ffa0ec5c0b 100755 >--- a/xt/api.t >+++ b/xt/api.t >@@ -91,14 +91,13 @@ subtest 'The spec passes the swagger-cli validation' => sub { > > plan tests => 1; > >-SKIP: { >- skip "Skipping tests, swagger-cli missing", 1 >- unless can_run('swagger-cli'); >- >+ if ( can_run('swagger-cli') ) { > my $spec_dir = "$FindBin::Bin/../api/v1/swagger"; > my $var = qx{swagger-cli validate $spec_dir/swagger.yaml 2>&1}; > is( $?, 0, 'Validation exit code is 0' ) > or diag $var; >+ } else { >+ ok( 0, "Test skipped, swagger-cli missing" ); > } > }; > >-- >2.45.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 33227
:
148213
|
148214
|
148268
|
148269
|
148407
|
148408
|
148410
|
148411
|
168707