Bugzilla – Attachment 54023 Details for
Bug 17032
REST API tests: Make sure Swagger object definition is up-to-date with database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17032: Remove warning "keys on reference is experimental"
Bug-17032-Remove-warning-keys-on-reference-is-expe.patch (text/plain), 1.17 KB, created by
Jonathan Druart
on 2016-08-05 10:25:03 UTC
(
hide
)
Description:
Bug 17032: Remove warning "keys on reference is experimental"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-05 10:25:03 UTC
Size:
1.17 KB
patch
obsolete
>From fe1f8e32cc473bce6de8fbc46283d54f652d97b6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 5 Aug 2016 11:21:34 +0100 >Subject: [PATCH] Bug 17032: Remove warning "keys on reference is experimental" > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/api/v1/swagger/definitions.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/swagger/definitions.t b/t/db_dependent/api/v1/swagger/definitions.t >index fa53146..c7977e9 100644 >--- a/t/db_dependent/api/v1/swagger/definitions.t >+++ b/t/db_dependent/api/v1/swagger/definitions.t >@@ -41,7 +41,7 @@ my $api_spec = $swagger->api_spec->data; > # columns to properties of the object defined in Swagger. > # --> If columns match properties, definition is ok. > # --> If columns do not match properties, definition is not ok. >-my @definition_names = keys $api_spec->{definitions}; >+my @definition_names = keys %{ $api_spec->{definitions} }; > > subtest 'api/v1/definitions/*.json up-to-date with corresponding Koha-object' => sub { > plan tests => scalar(@definition_names); >-- >2.8.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 17032
:
53936
|
53963
|
53980
|
54022
| 54023 |
55437