From 4e2ece4b51473525aa6218098bfbfebb0c5a286c Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 13 Mar 2021 21:48:00 +0800 Subject: [PATCH] [Perl] minor improvements (#8967) * update perl readme, test files * update perl test files * update readme --- .../src/main/resources/perl/README.mustache | 27 ++- .../src/main/resources/perl/api_test.mustache | 10 +- .../main/resources/perl/object_test.mustache | 7 +- samples/client/petstore/perl/README.md | 13 +- .../perl/t/AdditionalPropertiesAnyTypeTest.t | 33 ---- .../perl/t/AdditionalPropertiesArrayTest.t | 33 ---- .../perl/t/AdditionalPropertiesBooleanTest.t | 33 ---- .../perl/t/AdditionalPropertiesClassTest.t | 7 +- .../perl/t/AdditionalPropertiesIntegerTest.t | 33 ---- .../perl/t/AdditionalPropertiesNumberTest.t | 33 ---- .../perl/t/AdditionalPropertiesObjectTest.t | 33 ---- .../perl/t/AdditionalPropertiesStringTest.t | 33 ---- samples/client/petstore/perl/t/AdultTest.t | 33 ---- samples/client/petstore/perl/t/AnimalTest.t | 7 +- .../petstore/perl/t/AnotherFakeApiTest.t | 9 +- .../client/petstore/perl/t/ApiResponseTest.t | 7 +- .../perl/t/ArrayOfArrayOfNumberOnlyTest.t | 7 +- .../petstore/perl/t/ArrayOfNumberOnlyTest.t | 7 +- .../client/petstore/perl/t/ArrayTestTest.t | 7 +- .../client/petstore/perl/t/BigCatAllOfTest.t | 33 ---- samples/client/petstore/perl/t/BigCatTest.t | 33 ---- .../petstore/perl/t/CapitalizationTest.t | 7 +- samples/client/petstore/perl/t/CatAllOfTest.t | 7 +- samples/client/petstore/perl/t/CatTest.t | 7 +- samples/client/petstore/perl/t/CategoryTest.t | 7 +- samples/client/petstore/perl/t/ChildTest.t | 33 ---- .../client/petstore/perl/t/ClassModelTest.t | 7 +- samples/client/petstore/perl/t/ClientTest.t | 7 +- .../client/petstore/perl/t/DefaultApiTest.t | 9 +- samples/client/petstore/perl/t/DogAllOfTest.t | 7 +- samples/client/petstore/perl/t/DogTest.t | 7 +- .../client/petstore/perl/t/EnumArraysTest.t | 7 +- .../client/petstore/perl/t/EnumClassTest.t | 7 +- samples/client/petstore/perl/t/EnumTestTest.t | 7 +- samples/client/petstore/perl/t/FakeApiTest.t | 178 +++++++++--------- .../perl/t/FakeClassnameTags123ApiTest.t | 9 +- .../petstore/perl/t/FileSchemaTestClassTest.t | 9 +- samples/client/petstore/perl/t/FileTest.t | 9 +- samples/client/petstore/perl/t/FooTest.t | 9 +- .../client/petstore/perl/t/FormatTestTest.t | 7 +- .../petstore/perl/t/HasOnlyReadOnlyTest.t | 7 +- .../petstore/perl/t/HealthCheckResultTest.t | 9 +- samples/client/petstore/perl/t/HumanTest.t | 33 ---- .../petstore/perl/t/InlineObject1Test.t | 33 ---- .../petstore/perl/t/InlineObject2Test.t | 33 ---- .../petstore/perl/t/InlineObject3Test.t | 33 ---- .../petstore/perl/t/InlineObject4Test.t | 33 ---- .../petstore/perl/t/InlineObject5Test.t | 33 ---- .../client/petstore/perl/t/InlineObjectTest.t | 33 ---- .../perl/t/InlineResponseDefaultTest.t | 9 +- samples/client/petstore/perl/t/ListTest.t | 7 +- samples/client/petstore/perl/t/MapTestTest.t | 7 +- ...opertiesAndAdditionalPropertiesClassTest.t | 7 +- .../petstore/perl/t/Model200ResponseTest.t | 7 +- .../client/petstore/perl/t/ModelReturnTest.t | 7 +- samples/client/petstore/perl/t/NameTest.t | 7 +- .../petstore/perl/t/NullableClassTest.t | 9 +- .../client/petstore/perl/t/NumberOnlyTest.t | 7 +- samples/client/petstore/perl/t/OrderTest.t | 7 +- .../petstore/perl/t/OuterCompositeTest.t | 7 +- .../perl/t/OuterEnumDefaultValueTest.t | 9 +- .../perl/t/OuterEnumIntegerDefaultValueTest.t | 9 +- .../petstore/perl/t/OuterEnumIntegerTest.t | 9 +- .../client/petstore/perl/t/OuterEnumTest.t | 7 +- .../perl/t/OuterObjectWithEnumPropertyTest.t | 7 +- samples/client/petstore/perl/t/PersonTest.t | 33 ---- samples/client/petstore/perl/t/PetApiTest.t | 79 ++++---- samples/client/petstore/perl/t/PetTest.t | 7 +- .../petstore/perl/t/ReadOnlyFirstTest.t | 7 +- .../petstore/perl/t/SpecialModelNameTest.t | 7 +- samples/client/petstore/perl/t/StoreApiTest.t | 28 ++- .../petstore/perl/t/StringBooleanMapTest.t | 33 ---- samples/client/petstore/perl/t/TagTest.t | 7 +- .../petstore/perl/t/TypeHolderDefaultTest.t | 33 ---- .../petstore/perl/t/TypeHolderExampleTest.t | 33 ---- samples/client/petstore/perl/t/UserApiTest.t | 60 +++--- samples/client/petstore/perl/t/UserTest.t | 7 +- samples/client/petstore/perl/t/XmlItemTest.t | 33 ---- 78 files changed, 389 insertions(+), 1125 deletions(-) delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesAnyTypeTest.t delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesArrayTest.t delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesBooleanTest.t delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesIntegerTest.t delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesNumberTest.t delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesObjectTest.t delete mode 100644 samples/client/petstore/perl/t/AdditionalPropertiesStringTest.t delete mode 100644 samples/client/petstore/perl/t/AdultTest.t delete mode 100644 samples/client/petstore/perl/t/BigCatAllOfTest.t delete mode 100644 samples/client/petstore/perl/t/BigCatTest.t delete mode 100644 samples/client/petstore/perl/t/ChildTest.t delete mode 100644 samples/client/petstore/perl/t/HumanTest.t delete mode 100644 samples/client/petstore/perl/t/InlineObject1Test.t delete mode 100644 samples/client/petstore/perl/t/InlineObject2Test.t delete mode 100644 samples/client/petstore/perl/t/InlineObject3Test.t delete mode 100644 samples/client/petstore/perl/t/InlineObject4Test.t delete mode 100644 samples/client/petstore/perl/t/InlineObject5Test.t delete mode 100644 samples/client/petstore/perl/t/InlineObjectTest.t delete mode 100644 samples/client/petstore/perl/t/PersonTest.t delete mode 100644 samples/client/petstore/perl/t/StringBooleanMapTest.t delete mode 100644 samples/client/petstore/perl/t/TypeHolderDefaultTest.t delete mode 100644 samples/client/petstore/perl/t/TypeHolderExampleTest.t delete mode 100644 samples/client/petstore/perl/t/XmlItemTest.t diff --git a/modules/openapi-generator/src/main/resources/perl/README.mustache b/modules/openapi-generator/src/main/resources/perl/README.mustache index 0e05905b3bc..0bf80758c16 100644 --- a/modules/openapi-generator/src/main/resources/perl/README.mustache +++ b/modules/openapi-generator/src/main/resources/perl/README.mustache @@ -223,6 +223,15 @@ spec. If so, this is available via the `class_documentation()` and Each of these calls returns a hashref with various useful pieces of information. +# Installation Prerequisites + +Use [cpanm](https://metacpan.org/pod/distribution/App-cpanminus/bin/cpanm) to install the module dependencies: + +``` +cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) +cpanm --quiet --no-interactive Class::Accessor Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON +``` + # LOAD THE MODULES To load the API packages: @@ -252,19 +261,27 @@ use warnings; {{/model}}{{/models}} # for displaying the API response data use Data::Dumper; -use {{moduleName}}::{{classname}}; +{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}} my $api_instance = {{moduleName}}::{{classname}}->new( -{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}{{#authMethods}}{{#isBasic}} +{{#hasAuthMethods}} +{{#authMethods}} +{{#isBasic}} # Configure HTTP basic authorization: {{{name}}} username => 'YOUR_USERNAME', - password => 'YOUR_PASSWORD',{{/isBasic}}{{#isApiKey}} + password => 'YOUR_PASSWORD', +{{/isBasic}} +{{#isApiKey}} # Configure API key authorization: {{{name}}} api_key => {'{{{keyParamName}}}' => 'YOUR_API_KEY'}, # uncomment below to setup prefix (e.g. Bearer) for API key, if needed - #api_key_prefix => {'{{{keyParamName}}}' => 'Bearer'},{{/isApiKey}}{{#isOAuth}} + #api_key_prefix => {'{{{keyParamName}}}' => 'Bearer'}, +{{/isApiKey}} +{{#isOAuth}} # Configure OAuth2 access token for authorization: {{{name}}} - access_token => 'YOUR_ACCESS_TOKEN',{{/isOAuth}}{{/authMethods}} + access_token => 'YOUR_ACCESS_TOKEN', +{{/isOAuth}} +{{/authMethods}} {{/hasAuthMethods}} ); diff --git a/modules/openapi-generator/src/main/resources/perl/api_test.mustache b/modules/openapi-generator/src/main/resources/perl/api_test.mustache index a4d093efc6c..214c3d03039 100644 --- a/modules/openapi-generator/src/main/resources/perl/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/perl/api_test.mustache @@ -21,13 +21,11 @@ isa_ok($api, '{{moduleName}}::{{classname}}'); # # {{{nickname}}} test # -{ -{{#allParams}} my ${{paramName}} = undef; # replace NULL with a proper value +# uncomment below and update the test +{{#allParams}} +#my ${{nickname}}_{{paramName}} = undef; # replace NULL with a proper value {{/allParams}} - my $result = $api->{{nickname}}({{#allParams}}{{paramName}} => ${{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); -} +#my ${{nickname}}_result = $api->{{nickname}}({{#allParams}}{{paramName}} => ${{nickname}}_{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); {{/operation}} {{/operations}} - -1; diff --git a/modules/openapi-generator/src/main/resources/perl/object_test.mustache b/modules/openapi-generator/src/main/resources/perl/object_test.mustache index 368998d0feb..394d3daa333 100644 --- a/modules/openapi-generator/src/main/resources/perl/object_test.mustache +++ b/modules/openapi-generator/src/main/resources/perl/object_test.mustache @@ -16,9 +16,10 @@ use warnings; use_ok('{{moduleName}}::Object::{{classname}}'); -my $instance = {{moduleName}}::Object::{{classname}}->new(); - -isa_ok($instance, '{{moduleName}}::Object::{{classname}}'); +# uncomment below and update the test +#my $instance = {{moduleName}}::Object::{{classname}}->new(); +# +#isa_ok($instance, '{{moduleName}}::Object::{{classname}}'); {{/model}} {{/models}} diff --git a/samples/client/petstore/perl/README.md b/samples/client/petstore/perl/README.md index 7f6ca19b21f..9dd81b461b1 100644 --- a/samples/client/petstore/perl/README.md +++ b/samples/client/petstore/perl/README.md @@ -217,6 +217,15 @@ spec. If so, this is available via the `class_documentation()` and Each of these calls returns a hashref with various useful pieces of information. +# Installation Prerequisites + +Use [cpanm](https://metacpan.org/pod/distribution/App-cpanminus/bin/cpanm) to install the module dependencies: + +``` +cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) +cpanm --quiet --no-interactive Class::Accessor Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON +``` + # LOAD THE MODULES To load the API packages: @@ -344,9 +353,9 @@ use WWW::OpenAPIClient::Object::User; # for displaying the API response data use Data::Dumper; -use WWW::OpenAPIClient::; -my $api_instance = WWW::OpenAPIClient::->new( + +my $api_instance = WWW::OpenAPIClient::AnotherFakeApi->new( ); my $client = WWW::OpenAPIClient::Object::Client->new(); # Client | client model diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesAnyTypeTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesAnyTypeTest.t deleted file mode 100644 index fd0e0a47e66..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesAnyTypeTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesAnyType'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesAnyType->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesAnyType'); - diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesArrayTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesArrayTest.t deleted file mode 100644 index 406f44bf6af..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesArrayTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesArray'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesArray->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesArray'); - diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesBooleanTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesBooleanTest.t deleted file mode 100644 index 4bd9f751cbc..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesBooleanTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesBoolean'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesBoolean->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesBoolean'); - diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t index 91134627148..50c86cef1d3 100644 --- a/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t +++ b/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesClass->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesClass->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesIntegerTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesIntegerTest.t deleted file mode 100644 index 3b577613f8d..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesIntegerTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesInteger'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesInteger->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesInteger'); - diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesNumberTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesNumberTest.t deleted file mode 100644 index 39f1e67c5cd..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesNumberTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesNumber'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesNumber->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesNumber'); - diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesObjectTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesObjectTest.t deleted file mode 100644 index 7747e041c87..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesObjectTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesObject'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesObject->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesObject'); - diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesStringTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesStringTest.t deleted file mode 100644 index aba320141d4..00000000000 --- a/samples/client/petstore/perl/t/AdditionalPropertiesStringTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesString'); - -my $instance = WWW::OpenAPIClient::Object::AdditionalPropertiesString->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesString'); - diff --git a/samples/client/petstore/perl/t/AdultTest.t b/samples/client/petstore/perl/t/AdultTest.t deleted file mode 100644 index b76d0b23bdc..00000000000 --- a/samples/client/petstore/perl/t/AdultTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::Adult'); - -my $instance = WWW::OpenAPIClient::Object::Adult->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Adult'); - diff --git a/samples/client/petstore/perl/t/AnimalTest.t b/samples/client/petstore/perl/t/AnimalTest.t index 129d5e09d89..da13cadf9d6 100644 --- a/samples/client/petstore/perl/t/AnimalTest.t +++ b/samples/client/petstore/perl/t/AnimalTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Animal'); -my $instance = WWW::OpenAPIClient::Object::Animal->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Animal'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Animal->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Animal'); diff --git a/samples/client/petstore/perl/t/AnotherFakeApiTest.t b/samples/client/petstore/perl/t/AnotherFakeApiTest.t index 52d6452f0a3..8efef9bacee 100644 --- a/samples/client/petstore/perl/t/AnotherFakeApiTest.t +++ b/samples/client/petstore/perl/t/AnotherFakeApiTest.t @@ -32,10 +32,7 @@ isa_ok($api, 'WWW::OpenAPIClient::AnotherFakeApi'); # # call_123_test_special_tags test # -{ - my $body = undef; # replace NULL with a proper value - my $result = $api->call_123_test_special_tags(body => $body); -} +# uncomment below and update the test +#my $call_123_test_special_tags_client = undef; # replace NULL with a proper value +#my $call_123_test_special_tags_result = $api->call_123_test_special_tags(client => $call_123_test_special_tags_client); - -1; diff --git a/samples/client/petstore/perl/t/ApiResponseTest.t b/samples/client/petstore/perl/t/ApiResponseTest.t index 51f6df87d54..ba9e4fc212b 100644 --- a/samples/client/petstore/perl/t/ApiResponseTest.t +++ b/samples/client/petstore/perl/t/ApiResponseTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ApiResponse'); -my $instance = WWW::OpenAPIClient::Object::ApiResponse->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ApiResponse'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ApiResponse->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ApiResponse'); diff --git a/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t b/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t index 31a328b1857..80ea0374e83 100644 --- a/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t +++ b/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); -my $instance = WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); diff --git a/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t b/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t index 0cc6cb308e9..aa9c6570906 100644 --- a/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t +++ b/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); -my $instance = WWW::OpenAPIClient::Object::ArrayOfNumberOnly->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ArrayOfNumberOnly->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); diff --git a/samples/client/petstore/perl/t/ArrayTestTest.t b/samples/client/petstore/perl/t/ArrayTestTest.t index 732567b7ec1..d2b1188f08c 100644 --- a/samples/client/petstore/perl/t/ArrayTestTest.t +++ b/samples/client/petstore/perl/t/ArrayTestTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ArrayTest'); -my $instance = WWW::OpenAPIClient::Object::ArrayTest->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayTest'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ArrayTest->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayTest'); diff --git a/samples/client/petstore/perl/t/BigCatAllOfTest.t b/samples/client/petstore/perl/t/BigCatAllOfTest.t deleted file mode 100644 index 5708cbf3346..00000000000 --- a/samples/client/petstore/perl/t/BigCatAllOfTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::BigCatAllOf'); - -my $instance = WWW::OpenAPIClient::Object::BigCatAllOf->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::BigCatAllOf'); - diff --git a/samples/client/petstore/perl/t/BigCatTest.t b/samples/client/petstore/perl/t/BigCatTest.t deleted file mode 100644 index b1d4d7966bf..00000000000 --- a/samples/client/petstore/perl/t/BigCatTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::BigCat'); - -my $instance = WWW::OpenAPIClient::Object::BigCat->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::BigCat'); - diff --git a/samples/client/petstore/perl/t/CapitalizationTest.t b/samples/client/petstore/perl/t/CapitalizationTest.t index ec850822ed4..b9809bd1aa7 100644 --- a/samples/client/petstore/perl/t/CapitalizationTest.t +++ b/samples/client/petstore/perl/t/CapitalizationTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Capitalization'); -my $instance = WWW::OpenAPIClient::Object::Capitalization->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Capitalization'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Capitalization->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Capitalization'); diff --git a/samples/client/petstore/perl/t/CatAllOfTest.t b/samples/client/petstore/perl/t/CatAllOfTest.t index 4cccac8672e..67d33cf5d32 100644 --- a/samples/client/petstore/perl/t/CatAllOfTest.t +++ b/samples/client/petstore/perl/t/CatAllOfTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::CatAllOf'); -my $instance = WWW::OpenAPIClient::Object::CatAllOf->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::CatAllOf'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::CatAllOf->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::CatAllOf'); diff --git a/samples/client/petstore/perl/t/CatTest.t b/samples/client/petstore/perl/t/CatTest.t index 1413f5e6b30..56df7dee63d 100644 --- a/samples/client/petstore/perl/t/CatTest.t +++ b/samples/client/petstore/perl/t/CatTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Cat'); -my $instance = WWW::OpenAPIClient::Object::Cat->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Cat'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Cat->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Cat'); diff --git a/samples/client/petstore/perl/t/CategoryTest.t b/samples/client/petstore/perl/t/CategoryTest.t index 5fc384264b8..bcb06e64554 100644 --- a/samples/client/petstore/perl/t/CategoryTest.t +++ b/samples/client/petstore/perl/t/CategoryTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Category'); -my $instance = WWW::OpenAPIClient::Object::Category->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Category'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Category->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Category'); diff --git a/samples/client/petstore/perl/t/ChildTest.t b/samples/client/petstore/perl/t/ChildTest.t deleted file mode 100644 index f58e2c50c03..00000000000 --- a/samples/client/petstore/perl/t/ChildTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::Child'); - -my $instance = WWW::OpenAPIClient::Object::Child->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Child'); - diff --git a/samples/client/petstore/perl/t/ClassModelTest.t b/samples/client/petstore/perl/t/ClassModelTest.t index 327466479f4..cdbae32e3ca 100644 --- a/samples/client/petstore/perl/t/ClassModelTest.t +++ b/samples/client/petstore/perl/t/ClassModelTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ClassModel'); -my $instance = WWW::OpenAPIClient::Object::ClassModel->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ClassModel'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ClassModel->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ClassModel'); diff --git a/samples/client/petstore/perl/t/ClientTest.t b/samples/client/petstore/perl/t/ClientTest.t index a084665d3cf..6861bc97153 100644 --- a/samples/client/petstore/perl/t/ClientTest.t +++ b/samples/client/petstore/perl/t/ClientTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Client'); -my $instance = WWW::OpenAPIClient::Object::Client->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Client'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Client->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Client'); diff --git a/samples/client/petstore/perl/t/DefaultApiTest.t b/samples/client/petstore/perl/t/DefaultApiTest.t index c14be6c6707..16155a2d403 100644 --- a/samples/client/petstore/perl/t/DefaultApiTest.t +++ b/samples/client/petstore/perl/t/DefaultApiTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -32,9 +32,6 @@ isa_ok($api, 'WWW::OpenAPIClient::DefaultApi'); # # foo_get test # -{ - my $result = $api->foo_get(); -} +# uncomment below and update the test +#my $foo_get_result = $api->foo_get(); - -1; diff --git a/samples/client/petstore/perl/t/DogAllOfTest.t b/samples/client/petstore/perl/t/DogAllOfTest.t index 441bfc78633..6660506bf9e 100644 --- a/samples/client/petstore/perl/t/DogAllOfTest.t +++ b/samples/client/petstore/perl/t/DogAllOfTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::DogAllOf'); -my $instance = WWW::OpenAPIClient::Object::DogAllOf->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::DogAllOf'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::DogAllOf->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::DogAllOf'); diff --git a/samples/client/petstore/perl/t/DogTest.t b/samples/client/petstore/perl/t/DogTest.t index c7c6505b5ed..285ce98c707 100644 --- a/samples/client/petstore/perl/t/DogTest.t +++ b/samples/client/petstore/perl/t/DogTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Dog'); -my $instance = WWW::OpenAPIClient::Object::Dog->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Dog'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Dog->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Dog'); diff --git a/samples/client/petstore/perl/t/EnumArraysTest.t b/samples/client/petstore/perl/t/EnumArraysTest.t index e1541efc435..6be5ccb047b 100644 --- a/samples/client/petstore/perl/t/EnumArraysTest.t +++ b/samples/client/petstore/perl/t/EnumArraysTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::EnumArrays'); -my $instance = WWW::OpenAPIClient::Object::EnumArrays->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumArrays'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::EnumArrays->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumArrays'); diff --git a/samples/client/petstore/perl/t/EnumClassTest.t b/samples/client/petstore/perl/t/EnumClassTest.t index 56065ea9ed6..4e22665ef6c 100644 --- a/samples/client/petstore/perl/t/EnumClassTest.t +++ b/samples/client/petstore/perl/t/EnumClassTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::EnumClass'); -my $instance = WWW::OpenAPIClient::Object::EnumClass->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumClass'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::EnumClass->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumClass'); diff --git a/samples/client/petstore/perl/t/EnumTestTest.t b/samples/client/petstore/perl/t/EnumTestTest.t index 68213a1a951..8a84c3417d9 100644 --- a/samples/client/petstore/perl/t/EnumTestTest.t +++ b/samples/client/petstore/perl/t/EnumTestTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::EnumTest'); -my $instance = WWW::OpenAPIClient::Object::EnumTest->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumTest'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::EnumTest->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumTest'); diff --git a/samples/client/petstore/perl/t/FakeApiTest.t b/samples/client/petstore/perl/t/FakeApiTest.t index 7a14792afe7..512767a782b 100644 --- a/samples/client/petstore/perl/t/FakeApiTest.t +++ b/samples/client/petstore/perl/t/FakeApiTest.t @@ -32,154 +32,144 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); # # fake_health_get test # -{ - my $result = $api->fake_health_get(); -} +# uncomment below and update the test +#my $fake_health_get_result = $api->fake_health_get(); # # fake_http_signature_test test # -{ - my $pet = undef; # replace NULL with a proper value - my $query_1 = undef; # replace NULL with a proper value - my $header_1 = undef; # replace NULL with a proper value - my $result = $api->fake_http_signature_test(pet => $pet, query_1 => $query_1, header_1 => $header_1); -} +# uncomment below and update the test +#my $fake_http_signature_test_pet = undef; # replace NULL with a proper value +#my $fake_http_signature_test_query_1 = undef; # replace NULL with a proper value +#my $fake_http_signature_test_header_1 = undef; # replace NULL with a proper value +#my $fake_http_signature_test_result = $api->fake_http_signature_test(pet => $fake_http_signature_test_pet, query_1 => $fake_http_signature_test_query_1, header_1 => $fake_http_signature_test_header_1); # # fake_outer_boolean_serialize test # -{ - my $body = undef; # replace NULL with a proper value - my $result = $api->fake_outer_boolean_serialize(body => $body); -} +# uncomment below and update the test +#my $fake_outer_boolean_serialize_body = undef; # replace NULL with a proper value +#my $fake_outer_boolean_serialize_result = $api->fake_outer_boolean_serialize(body => $fake_outer_boolean_serialize_body); # # fake_outer_composite_serialize test # -{ - my $outer_composite = undef; # replace NULL with a proper value - my $result = $api->fake_outer_composite_serialize(outer_composite => $outer_composite); -} +# uncomment below and update the test +#my $fake_outer_composite_serialize_outer_composite = undef; # replace NULL with a proper value +#my $fake_outer_composite_serialize_result = $api->fake_outer_composite_serialize(outer_composite => $fake_outer_composite_serialize_outer_composite); # # fake_outer_number_serialize test # -{ - my $body = undef; # replace NULL with a proper value - my $result = $api->fake_outer_number_serialize(body => $body); -} +# uncomment below and update the test +#my $fake_outer_number_serialize_body = undef; # replace NULL with a proper value +#my $fake_outer_number_serialize_result = $api->fake_outer_number_serialize(body => $fake_outer_number_serialize_body); # # fake_outer_string_serialize test # -{ - my $body = undef; # replace NULL with a proper value - my $result = $api->fake_outer_string_serialize(body => $body); -} +# uncomment below and update the test +#my $fake_outer_string_serialize_body = undef; # replace NULL with a proper value +#my $fake_outer_string_serialize_result = $api->fake_outer_string_serialize(body => $fake_outer_string_serialize_body); + +# +# fake_property_enum_integer_serialize test +# +# uncomment below and update the test +#my $fake_property_enum_integer_serialize_outer_object_with_enum_property = undef; # replace NULL with a proper value +#my $fake_property_enum_integer_serialize_result = $api->fake_property_enum_integer_serialize(outer_object_with_enum_property => $fake_property_enum_integer_serialize_outer_object_with_enum_property); # # test_body_with_file_schema test # -{ - my $file_schema_test_class = undef; # replace NULL with a proper value - my $result = $api->test_body_with_file_schema(file_schema_test_class => $file_schema_test_class); -} +# uncomment below and update the test +#my $test_body_with_file_schema_file_schema_test_class = undef; # replace NULL with a proper value +#my $test_body_with_file_schema_result = $api->test_body_with_file_schema(file_schema_test_class => $test_body_with_file_schema_file_schema_test_class); # # test_body_with_query_params test # -{ - my $query = undef; # replace NULL with a proper value - my $user = undef; # replace NULL with a proper value - my $result = $api->test_body_with_query_params(query => $query, user => $user); -} +# uncomment below and update the test +#my $test_body_with_query_params_query = undef; # replace NULL with a proper value +#my $test_body_with_query_params_user = undef; # replace NULL with a proper value +#my $test_body_with_query_params_result = $api->test_body_with_query_params(query => $test_body_with_query_params_query, user => $test_body_with_query_params_user); # # test_client_model test # -{ - my $client = undef; # replace NULL with a proper value - my $result = $api->test_client_model(client => $client); -} +# uncomment below and update the test +#my $test_client_model_client = undef; # replace NULL with a proper value +#my $test_client_model_result = $api->test_client_model(client => $test_client_model_client); # # test_endpoint_parameters test # -{ - my $number = undef; # replace NULL with a proper value - my $double = undef; # replace NULL with a proper value - my $pattern_without_delimiter = undef; # replace NULL with a proper value - my $byte = undef; # replace NULL with a proper value - my $integer = undef; # replace NULL with a proper value - my $int32 = undef; # replace NULL with a proper value - my $int64 = undef; # replace NULL with a proper value - my $float = undef; # replace NULL with a proper value - my $string = undef; # replace NULL with a proper value - my $binary = undef; # replace NULL with a proper value - my $date = undef; # replace NULL with a proper value - my $date_time = undef; # replace NULL with a proper value - my $password = undef; # replace NULL with a proper value - my $callback = undef; # replace NULL with a proper value - my $result = $api->test_endpoint_parameters(number => $number, double => $double, pattern_without_delimiter => $pattern_without_delimiter, byte => $byte, integer => $integer, int32 => $int32, int64 => $int64, float => $float, string => $string, binary => $binary, date => $date, date_time => $date_time, password => $password, callback => $callback); -} +# uncomment below and update the test +#my $test_endpoint_parameters_number = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_double = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_pattern_without_delimiter = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_byte = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_integer = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_int32 = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_int64 = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_float = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_string = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_binary = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_date = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_date_time = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_password = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_callback = undef; # replace NULL with a proper value +#my $test_endpoint_parameters_result = $api->test_endpoint_parameters(number => $test_endpoint_parameters_number, double => $test_endpoint_parameters_double, pattern_without_delimiter => $test_endpoint_parameters_pattern_without_delimiter, byte => $test_endpoint_parameters_byte, integer => $test_endpoint_parameters_integer, int32 => $test_endpoint_parameters_int32, int64 => $test_endpoint_parameters_int64, float => $test_endpoint_parameters_float, string => $test_endpoint_parameters_string, binary => $test_endpoint_parameters_binary, date => $test_endpoint_parameters_date, date_time => $test_endpoint_parameters_date_time, password => $test_endpoint_parameters_password, callback => $test_endpoint_parameters_callback); # # test_enum_parameters test # -{ - my $enum_header_string_array = undef; # replace NULL with a proper value - my $enum_header_string = undef; # replace NULL with a proper value - my $enum_query_string_array = undef; # replace NULL with a proper value - my $enum_query_string = undef; # replace NULL with a proper value - my $enum_query_integer = undef; # replace NULL with a proper value - my $enum_query_double = undef; # replace NULL with a proper value - my $enum_form_string_array = undef; # replace NULL with a proper value - my $enum_form_string = undef; # replace NULL with a proper value - my $result = $api->test_enum_parameters(enum_header_string_array => $enum_header_string_array, enum_header_string => $enum_header_string, enum_query_string_array => $enum_query_string_array, enum_query_string => $enum_query_string, enum_query_integer => $enum_query_integer, enum_query_double => $enum_query_double, enum_form_string_array => $enum_form_string_array, enum_form_string => $enum_form_string); -} +# uncomment below and update the test +#my $test_enum_parameters_enum_header_string_array = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_header_string = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_query_string_array = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_query_string = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_query_integer = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_query_double = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_form_string_array = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_form_string = undef; # replace NULL with a proper value +#my $test_enum_parameters_result = $api->test_enum_parameters(enum_header_string_array => $test_enum_parameters_enum_header_string_array, enum_header_string => $test_enum_parameters_enum_header_string, enum_query_string_array => $test_enum_parameters_enum_query_string_array, enum_query_string => $test_enum_parameters_enum_query_string, enum_query_integer => $test_enum_parameters_enum_query_integer, enum_query_double => $test_enum_parameters_enum_query_double, enum_form_string_array => $test_enum_parameters_enum_form_string_array, enum_form_string => $test_enum_parameters_enum_form_string); # # test_group_parameters test # -{ - my $required_string_group = undef; # replace NULL with a proper value - my $required_boolean_group = undef; # replace NULL with a proper value - my $required_int64_group = undef; # replace NULL with a proper value - my $string_group = undef; # replace NULL with a proper value - my $boolean_group = undef; # replace NULL with a proper value - my $int64_group = undef; # replace NULL with a proper value - my $result = $api->test_group_parameters(required_string_group => $required_string_group, required_boolean_group => $required_boolean_group, required_int64_group => $required_int64_group, string_group => $string_group, boolean_group => $boolean_group, int64_group => $int64_group); -} +# uncomment below and update the test +#my $test_group_parameters_required_string_group = undef; # replace NULL with a proper value +#my $test_group_parameters_required_boolean_group = undef; # replace NULL with a proper value +#my $test_group_parameters_required_int64_group = undef; # replace NULL with a proper value +#my $test_group_parameters_string_group = undef; # replace NULL with a proper value +#my $test_group_parameters_boolean_group = undef; # replace NULL with a proper value +#my $test_group_parameters_int64_group = undef; # replace NULL with a proper value +#my $test_group_parameters_result = $api->test_group_parameters(required_string_group => $test_group_parameters_required_string_group, required_boolean_group => $test_group_parameters_required_boolean_group, required_int64_group => $test_group_parameters_required_int64_group, string_group => $test_group_parameters_string_group, boolean_group => $test_group_parameters_boolean_group, int64_group => $test_group_parameters_int64_group); # # test_inline_additional_properties test # -{ - my $request_body = undef; # replace NULL with a proper value - my $result = $api->test_inline_additional_properties(request_body => $request_body); -} +# uncomment below and update the test +#my $test_inline_additional_properties_request_body = undef; # replace NULL with a proper value +#my $test_inline_additional_properties_result = $api->test_inline_additional_properties(request_body => $test_inline_additional_properties_request_body); # # test_json_form_data test # -{ - my $param = undef; # replace NULL with a proper value - my $param2 = undef; # replace NULL with a proper value - my $result = $api->test_json_form_data(param => $param, param2 => $param2); -} +# uncomment below and update the test +#my $test_json_form_data_param = undef; # replace NULL with a proper value +#my $test_json_form_data_param2 = undef; # replace NULL with a proper value +#my $test_json_form_data_result = $api->test_json_form_data(param => $test_json_form_data_param, param2 => $test_json_form_data_param2); # # test_query_parameter_collection_format test # -{ - my $pipe = undef; # replace NULL with a proper value - my $ioutil = undef; # replace NULL with a proper value - my $http = undef; # replace NULL with a proper value - my $url = undef; # replace NULL with a proper value - my $context = undef; # replace NULL with a proper value - my $result = $api->test_query_parameter_collection_format(pipe => $pipe, ioutil => $ioutil, http => $http, url => $url, context => $context); -} +# uncomment below and update the test +#my $test_query_parameter_collection_format_pipe = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_ioutil = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_http = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_url = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_context = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_result = $api->test_query_parameter_collection_format(pipe => $test_query_parameter_collection_format_pipe, ioutil => $test_query_parameter_collection_format_ioutil, http => $test_query_parameter_collection_format_http, url => $test_query_parameter_collection_format_url, context => $test_query_parameter_collection_format_context); - -1; diff --git a/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t b/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t index 009586521bd..6bbbac594b8 100644 --- a/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t +++ b/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t @@ -32,10 +32,7 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeClassnameTags123Api'); # # test_classname test # -{ - my $client = undef; # replace NULL with a proper value - my $result = $api->test_classname(client => $client); -} +# uncomment below and update the test +#my $test_classname_client = undef; # replace NULL with a proper value +#my $test_classname_result = $api->test_classname(client => $test_classname_client); - -1; diff --git a/samples/client/petstore/perl/t/FileSchemaTestClassTest.t b/samples/client/petstore/perl/t/FileSchemaTestClassTest.t index b7a2a6d282e..040d6d95596 100644 --- a/samples/client/petstore/perl/t/FileSchemaTestClassTest.t +++ b/samples/client/petstore/perl/t/FileSchemaTestClassTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::FileSchemaTestClass'); -my $instance = WWW::OpenAPIClient::Object::FileSchemaTestClass->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::FileSchemaTestClass'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::FileSchemaTestClass->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::FileSchemaTestClass'); diff --git a/samples/client/petstore/perl/t/FileTest.t b/samples/client/petstore/perl/t/FileTest.t index 99f8eca953f..59a96f574cd 100644 --- a/samples/client/petstore/perl/t/FileTest.t +++ b/samples/client/petstore/perl/t/FileTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::File'); -my $instance = WWW::OpenAPIClient::Object::File->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::File'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::File->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::File'); diff --git a/samples/client/petstore/perl/t/FooTest.t b/samples/client/petstore/perl/t/FooTest.t index 84aabda5c41..5ce9e8b66a4 100644 --- a/samples/client/petstore/perl/t/FooTest.t +++ b/samples/client/petstore/perl/t/FooTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Foo'); -my $instance = WWW::OpenAPIClient::Object::Foo->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Foo'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Foo->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Foo'); diff --git a/samples/client/petstore/perl/t/FormatTestTest.t b/samples/client/petstore/perl/t/FormatTestTest.t index 7198d770059..78bf3cafb1d 100644 --- a/samples/client/petstore/perl/t/FormatTestTest.t +++ b/samples/client/petstore/perl/t/FormatTestTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::FormatTest'); -my $instance = WWW::OpenAPIClient::Object::FormatTest->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::FormatTest'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::FormatTest->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::FormatTest'); diff --git a/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t b/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t index 4bbe9bc3116..8c4007b946a 100644 --- a/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t +++ b/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::HasOnlyReadOnly'); -my $instance = WWW::OpenAPIClient::Object::HasOnlyReadOnly->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::HasOnlyReadOnly'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::HasOnlyReadOnly->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::HasOnlyReadOnly'); diff --git a/samples/client/petstore/perl/t/HealthCheckResultTest.t b/samples/client/petstore/perl/t/HealthCheckResultTest.t index f4309db10dd..6e5e4b0f964 100644 --- a/samples/client/petstore/perl/t/HealthCheckResultTest.t +++ b/samples/client/petstore/perl/t/HealthCheckResultTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::HealthCheckResult'); -my $instance = WWW::OpenAPIClient::Object::HealthCheckResult->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::HealthCheckResult'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::HealthCheckResult->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::HealthCheckResult'); diff --git a/samples/client/petstore/perl/t/HumanTest.t b/samples/client/petstore/perl/t/HumanTest.t deleted file mode 100644 index 0bf47c04df0..00000000000 --- a/samples/client/petstore/perl/t/HumanTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::Human'); - -my $instance = WWW::OpenAPIClient::Object::Human->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Human'); - diff --git a/samples/client/petstore/perl/t/InlineObject1Test.t b/samples/client/petstore/perl/t/InlineObject1Test.t deleted file mode 100644 index e2f054ad6bd..00000000000 --- a/samples/client/petstore/perl/t/InlineObject1Test.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineObject1'); - -my $instance = WWW::OpenAPIClient::Object::InlineObject1->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineObject1'); - diff --git a/samples/client/petstore/perl/t/InlineObject2Test.t b/samples/client/petstore/perl/t/InlineObject2Test.t deleted file mode 100644 index 1f5890f3466..00000000000 --- a/samples/client/petstore/perl/t/InlineObject2Test.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineObject2'); - -my $instance = WWW::OpenAPIClient::Object::InlineObject2->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineObject2'); - diff --git a/samples/client/petstore/perl/t/InlineObject3Test.t b/samples/client/petstore/perl/t/InlineObject3Test.t deleted file mode 100644 index 3861c16ca8c..00000000000 --- a/samples/client/petstore/perl/t/InlineObject3Test.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineObject3'); - -my $instance = WWW::OpenAPIClient::Object::InlineObject3->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineObject3'); - diff --git a/samples/client/petstore/perl/t/InlineObject4Test.t b/samples/client/petstore/perl/t/InlineObject4Test.t deleted file mode 100644 index 5949bc4ac8b..00000000000 --- a/samples/client/petstore/perl/t/InlineObject4Test.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineObject4'); - -my $instance = WWW::OpenAPIClient::Object::InlineObject4->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineObject4'); - diff --git a/samples/client/petstore/perl/t/InlineObject5Test.t b/samples/client/petstore/perl/t/InlineObject5Test.t deleted file mode 100644 index dcce5288ea1..00000000000 --- a/samples/client/petstore/perl/t/InlineObject5Test.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineObject5'); - -my $instance = WWW::OpenAPIClient::Object::InlineObject5->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineObject5'); - diff --git a/samples/client/petstore/perl/t/InlineObjectTest.t b/samples/client/petstore/perl/t/InlineObjectTest.t deleted file mode 100644 index 055490acd2e..00000000000 --- a/samples/client/petstore/perl/t/InlineObjectTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineObject'); - -my $instance = WWW::OpenAPIClient::Object::InlineObject->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineObject'); - diff --git a/samples/client/petstore/perl/t/InlineResponseDefaultTest.t b/samples/client/petstore/perl/t/InlineResponseDefaultTest.t index 36336e35268..2b3da22fde3 100644 --- a/samples/client/petstore/perl/t/InlineResponseDefaultTest.t +++ b/samples/client/petstore/perl/t/InlineResponseDefaultTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::InlineResponseDefault'); -my $instance = WWW::OpenAPIClient::Object::InlineResponseDefault->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineResponseDefault'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::InlineResponseDefault->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineResponseDefault'); diff --git a/samples/client/petstore/perl/t/ListTest.t b/samples/client/petstore/perl/t/ListTest.t index 62667a725ec..484f357bcb3 100644 --- a/samples/client/petstore/perl/t/ListTest.t +++ b/samples/client/petstore/perl/t/ListTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::List'); -my $instance = WWW::OpenAPIClient::Object::List->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::List'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::List->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::List'); diff --git a/samples/client/petstore/perl/t/MapTestTest.t b/samples/client/petstore/perl/t/MapTestTest.t index 44f6d262390..08e0e76365e 100644 --- a/samples/client/petstore/perl/t/MapTestTest.t +++ b/samples/client/petstore/perl/t/MapTestTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::MapTest'); -my $instance = WWW::OpenAPIClient::Object::MapTest->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::MapTest'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::MapTest->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::MapTest'); diff --git a/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t b/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t index bdbc94cf2f2..32fc58f324e 100644 --- a/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t +++ b/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass'); -my $instance = WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass'); diff --git a/samples/client/petstore/perl/t/Model200ResponseTest.t b/samples/client/petstore/perl/t/Model200ResponseTest.t index 73d5e9f6419..603e1c1471c 100644 --- a/samples/client/petstore/perl/t/Model200ResponseTest.t +++ b/samples/client/petstore/perl/t/Model200ResponseTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Model200Response'); -my $instance = WWW::OpenAPIClient::Object::Model200Response->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Model200Response'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Model200Response->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Model200Response'); diff --git a/samples/client/petstore/perl/t/ModelReturnTest.t b/samples/client/petstore/perl/t/ModelReturnTest.t index 1d659c2b66b..283ed51adae 100644 --- a/samples/client/petstore/perl/t/ModelReturnTest.t +++ b/samples/client/petstore/perl/t/ModelReturnTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ModelReturn'); -my $instance = WWW::OpenAPIClient::Object::ModelReturn->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ModelReturn'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ModelReturn->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ModelReturn'); diff --git a/samples/client/petstore/perl/t/NameTest.t b/samples/client/petstore/perl/t/NameTest.t index b057ae25163..eb0f0e9bc88 100644 --- a/samples/client/petstore/perl/t/NameTest.t +++ b/samples/client/petstore/perl/t/NameTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Name'); -my $instance = WWW::OpenAPIClient::Object::Name->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Name'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Name->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Name'); diff --git a/samples/client/petstore/perl/t/NullableClassTest.t b/samples/client/petstore/perl/t/NullableClassTest.t index 20709824493..932dfe3a950 100644 --- a/samples/client/petstore/perl/t/NullableClassTest.t +++ b/samples/client/petstore/perl/t/NullableClassTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::NullableClass'); -my $instance = WWW::OpenAPIClient::Object::NullableClass->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::NullableClass'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::NullableClass->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::NullableClass'); diff --git a/samples/client/petstore/perl/t/NumberOnlyTest.t b/samples/client/petstore/perl/t/NumberOnlyTest.t index 07608ececed..710bddd6340 100644 --- a/samples/client/petstore/perl/t/NumberOnlyTest.t +++ b/samples/client/petstore/perl/t/NumberOnlyTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::NumberOnly'); -my $instance = WWW::OpenAPIClient::Object::NumberOnly->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::NumberOnly'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::NumberOnly->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::NumberOnly'); diff --git a/samples/client/petstore/perl/t/OrderTest.t b/samples/client/petstore/perl/t/OrderTest.t index 926a223b52d..08499ad4d9c 100644 --- a/samples/client/petstore/perl/t/OrderTest.t +++ b/samples/client/petstore/perl/t/OrderTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Order'); -my $instance = WWW::OpenAPIClient::Object::Order->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Order'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Order->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Order'); diff --git a/samples/client/petstore/perl/t/OuterCompositeTest.t b/samples/client/petstore/perl/t/OuterCompositeTest.t index 6e74d3868dd..3e23fa93c33 100644 --- a/samples/client/petstore/perl/t/OuterCompositeTest.t +++ b/samples/client/petstore/perl/t/OuterCompositeTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::OuterComposite'); -my $instance = WWW::OpenAPIClient::Object::OuterComposite->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterComposite'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::OuterComposite->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterComposite'); diff --git a/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t b/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t index 860c5dcbeea..7b52c276fa0 100644 --- a/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t +++ b/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); -my $instance = WWW::OpenAPIClient::Object::OuterEnumDefaultValue->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::OuterEnumDefaultValue->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); diff --git a/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t b/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t index 54ff32ad6fe..56e114ab16a 100644 --- a/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t +++ b/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); -my $instance = WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); diff --git a/samples/client/petstore/perl/t/OuterEnumIntegerTest.t b/samples/client/petstore/perl/t/OuterEnumIntegerTest.t index 5e2be8cfef4..b10b2e69d45 100644 --- a/samples/client/petstore/perl/t/OuterEnumIntegerTest.t +++ b/samples/client/petstore/perl/t/OuterEnumIntegerTest.t @@ -4,7 +4,7 @@ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -OpenAPI spec version: 1.0.0 +The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::OuterEnumInteger'); -my $instance = WWW::OpenAPIClient::Object::OuterEnumInteger->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumInteger'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::OuterEnumInteger->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumInteger'); diff --git a/samples/client/petstore/perl/t/OuterEnumTest.t b/samples/client/petstore/perl/t/OuterEnumTest.t index 92d1571ab60..39fd4426281 100644 --- a/samples/client/petstore/perl/t/OuterEnumTest.t +++ b/samples/client/petstore/perl/t/OuterEnumTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::OuterEnum'); -my $instance = WWW::OpenAPIClient::Object::OuterEnum->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnum'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::OuterEnum->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnum'); diff --git a/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t b/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t index ee2a31d89da..b28dd8492b3 100644 --- a/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t +++ b/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); -my $instance = WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); diff --git a/samples/client/petstore/perl/t/PersonTest.t b/samples/client/petstore/perl/t/PersonTest.t deleted file mode 100644 index eceb9e5c1fc..00000000000 --- a/samples/client/petstore/perl/t/PersonTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::Person'); - -my $instance = WWW::OpenAPIClient::Object::Person->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Person'); - diff --git a/samples/client/petstore/perl/t/PetApiTest.t b/samples/client/petstore/perl/t/PetApiTest.t index 6a4a5d3e990..479af7c718f 100644 --- a/samples/client/petstore/perl/t/PetApiTest.t +++ b/samples/client/petstore/perl/t/PetApiTest.t @@ -32,81 +32,70 @@ isa_ok($api, 'WWW::OpenAPIClient::PetApi'); # # add_pet test # -{ - my $pet = undef; # replace NULL with a proper value - my $result = $api->add_pet(pet => $pet); -} +# uncomment below and update the test +#my $add_pet_pet = undef; # replace NULL with a proper value +#my $add_pet_result = $api->add_pet(pet => $add_pet_pet); # # delete_pet test # -{ - my $pet_id = undef; # replace NULL with a proper value - my $api_key = undef; # replace NULL with a proper value - my $result = $api->delete_pet(pet_id => $pet_id, api_key => $api_key); -} +# uncomment below and update the test +#my $delete_pet_pet_id = undef; # replace NULL with a proper value +#my $delete_pet_api_key = undef; # replace NULL with a proper value +#my $delete_pet_result = $api->delete_pet(pet_id => $delete_pet_pet_id, api_key => $delete_pet_api_key); # # find_pets_by_status test # -{ - my $status = undef; # replace NULL with a proper value - my $result = $api->find_pets_by_status(status => $status); -} +# uncomment below and update the test +#my $find_pets_by_status_status = undef; # replace NULL with a proper value +#my $find_pets_by_status_result = $api->find_pets_by_status(status => $find_pets_by_status_status); # # find_pets_by_tags test # -{ - my $tags = undef; # replace NULL with a proper value - my $result = $api->find_pets_by_tags(tags => $tags); -} +# uncomment below and update the test +#my $find_pets_by_tags_tags = undef; # replace NULL with a proper value +#my $find_pets_by_tags_result = $api->find_pets_by_tags(tags => $find_pets_by_tags_tags); # # get_pet_by_id test # -{ - my $pet_id = undef; # replace NULL with a proper value - my $result = $api->get_pet_by_id(pet_id => $pet_id); -} +# uncomment below and update the test +#my $get_pet_by_id_pet_id = undef; # replace NULL with a proper value +#my $get_pet_by_id_result = $api->get_pet_by_id(pet_id => $get_pet_by_id_pet_id); # # update_pet test # -{ - my $pet = undef; # replace NULL with a proper value - my $result = $api->update_pet(pet => $pet); -} +# uncomment below and update the test +#my $update_pet_pet = undef; # replace NULL with a proper value +#my $update_pet_result = $api->update_pet(pet => $update_pet_pet); # # update_pet_with_form test # -{ - my $pet_id = undef; # replace NULL with a proper value - my $name = undef; # replace NULL with a proper value - my $status = undef; # replace NULL with a proper value - my $result = $api->update_pet_with_form(pet_id => $pet_id, name => $name, status => $status); -} +# uncomment below and update the test +#my $update_pet_with_form_pet_id = undef; # replace NULL with a proper value +#my $update_pet_with_form_name = undef; # replace NULL with a proper value +#my $update_pet_with_form_status = undef; # replace NULL with a proper value +#my $update_pet_with_form_result = $api->update_pet_with_form(pet_id => $update_pet_with_form_pet_id, name => $update_pet_with_form_name, status => $update_pet_with_form_status); # # upload_file test # -{ - my $pet_id = undef; # replace NULL with a proper value - my $additional_metadata = undef; # replace NULL with a proper value - my $file = undef; # replace NULL with a proper value - my $result = $api->upload_file(pet_id => $pet_id, additional_metadata => $additional_metadata, file => $file); -} +# uncomment below and update the test +#my $upload_file_pet_id = undef; # replace NULL with a proper value +#my $upload_file_additional_metadata = undef; # replace NULL with a proper value +#my $upload_file_file = undef; # replace NULL with a proper value +#my $upload_file_result = $api->upload_file(pet_id => $upload_file_pet_id, additional_metadata => $upload_file_additional_metadata, file => $upload_file_file); # # upload_file_with_required_file test # -{ - my $pet_id = undef; # replace NULL with a proper value - my $required_file = undef; # replace NULL with a proper value - my $additional_metadata = undef; # replace NULL with a proper value - my $result = $api->upload_file_with_required_file(pet_id => $pet_id, required_file => $required_file, additional_metadata => $additional_metadata); -} +# uncomment below and update the test +#my $upload_file_with_required_file_pet_id = undef; # replace NULL with a proper value +#my $upload_file_with_required_file_required_file = undef; # replace NULL with a proper value +#my $upload_file_with_required_file_additional_metadata = undef; # replace NULL with a proper value +#my $upload_file_with_required_file_result = $api->upload_file_with_required_file(pet_id => $upload_file_with_required_file_pet_id, required_file => $upload_file_with_required_file_required_file, additional_metadata => $upload_file_with_required_file_additional_metadata); - -1; diff --git a/samples/client/petstore/perl/t/PetTest.t b/samples/client/petstore/perl/t/PetTest.t index 1b3fc969ea0..988648c4ed3 100644 --- a/samples/client/petstore/perl/t/PetTest.t +++ b/samples/client/petstore/perl/t/PetTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Pet'); -my $instance = WWW::OpenAPIClient::Object::Pet->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Pet'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Pet->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Pet'); diff --git a/samples/client/petstore/perl/t/ReadOnlyFirstTest.t b/samples/client/petstore/perl/t/ReadOnlyFirstTest.t index f384c20c003..cf136039203 100644 --- a/samples/client/petstore/perl/t/ReadOnlyFirstTest.t +++ b/samples/client/petstore/perl/t/ReadOnlyFirstTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::ReadOnlyFirst'); -my $instance = WWW::OpenAPIClient::Object::ReadOnlyFirst->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::ReadOnlyFirst'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::ReadOnlyFirst->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::ReadOnlyFirst'); diff --git a/samples/client/petstore/perl/t/SpecialModelNameTest.t b/samples/client/petstore/perl/t/SpecialModelNameTest.t index 0d24e9aaa28..8048dd3ab30 100644 --- a/samples/client/petstore/perl/t/SpecialModelNameTest.t +++ b/samples/client/petstore/perl/t/SpecialModelNameTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::SpecialModelName'); -my $instance = WWW::OpenAPIClient::Object::SpecialModelName->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::SpecialModelName'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::SpecialModelName->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::SpecialModelName'); diff --git a/samples/client/petstore/perl/t/StoreApiTest.t b/samples/client/petstore/perl/t/StoreApiTest.t index 6fae9f2f5fd..c2dcf8cd64b 100644 --- a/samples/client/petstore/perl/t/StoreApiTest.t +++ b/samples/client/petstore/perl/t/StoreApiTest.t @@ -32,33 +32,27 @@ isa_ok($api, 'WWW::OpenAPIClient::StoreApi'); # # delete_order test # -{ - my $order_id = undef; # replace NULL with a proper value - my $result = $api->delete_order(order_id => $order_id); -} +# uncomment below and update the test +#my $delete_order_order_id = undef; # replace NULL with a proper value +#my $delete_order_result = $api->delete_order(order_id => $delete_order_order_id); # # get_inventory test # -{ - my $result = $api->get_inventory(); -} +# uncomment below and update the test +#my $get_inventory_result = $api->get_inventory(); # # get_order_by_id test # -{ - my $order_id = undef; # replace NULL with a proper value - my $result = $api->get_order_by_id(order_id => $order_id); -} +# uncomment below and update the test +#my $get_order_by_id_order_id = undef; # replace NULL with a proper value +#my $get_order_by_id_result = $api->get_order_by_id(order_id => $get_order_by_id_order_id); # # place_order test # -{ - my $order = undef; # replace NULL with a proper value - my $result = $api->place_order(order => $order); -} +# uncomment below and update the test +#my $place_order_order = undef; # replace NULL with a proper value +#my $place_order_result = $api->place_order(order => $place_order_order); - -1; diff --git a/samples/client/petstore/perl/t/StringBooleanMapTest.t b/samples/client/petstore/perl/t/StringBooleanMapTest.t deleted file mode 100644 index ffcac0b77a0..00000000000 --- a/samples/client/petstore/perl/t/StringBooleanMapTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::StringBooleanMap'); - -my $instance = WWW::OpenAPIClient::Object::StringBooleanMap->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::StringBooleanMap'); - diff --git a/samples/client/petstore/perl/t/TagTest.t b/samples/client/petstore/perl/t/TagTest.t index d9b862839fb..1a5b2ee23ae 100644 --- a/samples/client/petstore/perl/t/TagTest.t +++ b/samples/client/petstore/perl/t/TagTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::Tag'); -my $instance = WWW::OpenAPIClient::Object::Tag->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::Tag'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::Tag->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::Tag'); diff --git a/samples/client/petstore/perl/t/TypeHolderDefaultTest.t b/samples/client/petstore/perl/t/TypeHolderDefaultTest.t deleted file mode 100644 index b1f70a2fe4e..00000000000 --- a/samples/client/petstore/perl/t/TypeHolderDefaultTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::TypeHolderDefault'); - -my $instance = WWW::OpenAPIClient::Object::TypeHolderDefault->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::TypeHolderDefault'); - diff --git a/samples/client/petstore/perl/t/TypeHolderExampleTest.t b/samples/client/petstore/perl/t/TypeHolderExampleTest.t deleted file mode 100644 index 4daf559c3e5..00000000000 --- a/samples/client/petstore/perl/t/TypeHolderExampleTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::TypeHolderExample'); - -my $instance = WWW::OpenAPIClient::Object::TypeHolderExample->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::TypeHolderExample'); - diff --git a/samples/client/petstore/perl/t/UserApiTest.t b/samples/client/petstore/perl/t/UserApiTest.t index eee42fb71d2..a79d1fc2570 100644 --- a/samples/client/petstore/perl/t/UserApiTest.t +++ b/samples/client/petstore/perl/t/UserApiTest.t @@ -32,67 +32,57 @@ isa_ok($api, 'WWW::OpenAPIClient::UserApi'); # # create_user test # -{ - my $user = undef; # replace NULL with a proper value - my $result = $api->create_user(user => $user); -} +# uncomment below and update the test +#my $create_user_user = undef; # replace NULL with a proper value +#my $create_user_result = $api->create_user(user => $create_user_user); # # create_users_with_array_input test # -{ - my $user = undef; # replace NULL with a proper value - my $result = $api->create_users_with_array_input(user => $user); -} +# uncomment below and update the test +#my $create_users_with_array_input_user = undef; # replace NULL with a proper value +#my $create_users_with_array_input_result = $api->create_users_with_array_input(user => $create_users_with_array_input_user); # # create_users_with_list_input test # -{ - my $user = undef; # replace NULL with a proper value - my $result = $api->create_users_with_list_input(user => $user); -} +# uncomment below and update the test +#my $create_users_with_list_input_user = undef; # replace NULL with a proper value +#my $create_users_with_list_input_result = $api->create_users_with_list_input(user => $create_users_with_list_input_user); # # delete_user test # -{ - my $username = undef; # replace NULL with a proper value - my $result = $api->delete_user(username => $username); -} +# uncomment below and update the test +#my $delete_user_username = undef; # replace NULL with a proper value +#my $delete_user_result = $api->delete_user(username => $delete_user_username); # # get_user_by_name test # -{ - my $username = undef; # replace NULL with a proper value - my $result = $api->get_user_by_name(username => $username); -} +# uncomment below and update the test +#my $get_user_by_name_username = undef; # replace NULL with a proper value +#my $get_user_by_name_result = $api->get_user_by_name(username => $get_user_by_name_username); # # login_user test # -{ - my $username = undef; # replace NULL with a proper value - my $password = undef; # replace NULL with a proper value - my $result = $api->login_user(username => $username, password => $password); -} +# uncomment below and update the test +#my $login_user_username = undef; # replace NULL with a proper value +#my $login_user_password = undef; # replace NULL with a proper value +#my $login_user_result = $api->login_user(username => $login_user_username, password => $login_user_password); # # logout_user test # -{ - my $result = $api->logout_user(); -} +# uncomment below and update the test +#my $logout_user_result = $api->logout_user(); # # update_user test # -{ - my $username = undef; # replace NULL with a proper value - my $user = undef; # replace NULL with a proper value - my $result = $api->update_user(username => $username, user => $user); -} +# uncomment below and update the test +#my $update_user_username = undef; # replace NULL with a proper value +#my $update_user_user = undef; # replace NULL with a proper value +#my $update_user_result = $api->update_user(username => $update_user_username, user => $update_user_user); - -1; diff --git a/samples/client/petstore/perl/t/UserTest.t b/samples/client/petstore/perl/t/UserTest.t index eb95e9e2329..1e678b9efeb 100644 --- a/samples/client/petstore/perl/t/UserTest.t +++ b/samples/client/petstore/perl/t/UserTest.t @@ -27,7 +27,8 @@ use warnings; use_ok('WWW::OpenAPIClient::Object::User'); -my $instance = WWW::OpenAPIClient::Object::User->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::User'); +# uncomment below and update the test +#my $instance = WWW::OpenAPIClient::Object::User->new(); +# +#isa_ok($instance, 'WWW::OpenAPIClient::Object::User'); diff --git a/samples/client/petstore/perl/t/XmlItemTest.t b/samples/client/petstore/perl/t/XmlItemTest.t deleted file mode 100644 index f60e4865f27..00000000000 --- a/samples/client/petstore/perl/t/XmlItemTest.t +++ /dev/null @@ -1,33 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -OpenAPI spec version: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::XmlItem'); - -my $instance = WWW::OpenAPIClient::Object::XmlItem->new(); - -isa_ok($instance, 'WWW::OpenAPIClient::Object::XmlItem'); -