From 5b6b0825046fea1ba93e89c1abdcbae658787cab Mon Sep 17 00:00:00 2001 From: William E Little Jr <90572149+bmodotdev@users.noreply.github.com> Date: Sat, 20 Jan 2024 00:25:45 -0600 Subject: [PATCH] [Perl] Update _test.mustache templates to use done_testing (#17649) * test(perl): Update test plan to use done_testing close #14921 * fixup! test(perl): Update test plan to use done_testing results of "./bin/generate-samples.sh ./bin/configs/perl.yaml" * fixup! test(perl): Update test plan to use done_testing regenerate samples --------- Co-authored-by: William E Little Jr <13027375-bmodotdev@users.noreply.gitlab.com> --- .../src/main/resources/perl/api_test.mustache | 4 +- .../main/resources/perl/object_test.mustache | 4 +- .../perl/t/AdditionalPropertiesClassTest.t | 4 +- .../petstore/perl/t/AllOfWithSingleRefTest.t | 4 +- samples/client/petstore/perl/t/AnimalTest.t | 4 +- .../petstore/perl/t/AnotherFakeApiTest.t | 4 +- .../client/petstore/perl/t/ApiResponseTest.t | 4 +- .../perl/t/ArrayOfArrayOfNumberOnlyTest.t | 4 +- .../petstore/perl/t/ArrayOfNumberOnlyTest.t | 4 +- .../client/petstore/perl/t/ArrayTestTest.t | 4 +- .../petstore/perl/t/CapitalizationTest.t | 4 +- samples/client/petstore/perl/t/CatTest.t | 4 +- samples/client/petstore/perl/t/CategoryTest.t | 4 +- .../petstore/perl/t/ChildWithNullableTest.t | 4 +- .../client/petstore/perl/t/ClassModelTest.t | 4 +- samples/client/petstore/perl/t/ClientTest.t | 4 +- .../client/petstore/perl/t/DefaultApiTest.t | 4 +- .../petstore/perl/t/DeprecatedModelTest.t | 4 +- .../petstore/perl/t/DeprecatedObjectTest.t | 34 -------------- samples/client/petstore/perl/t/DogTest.t | 4 +- .../client/petstore/perl/t/EnumArraysTest.t | 4 +- .../client/petstore/perl/t/EnumClassTest.t | 4 +- samples/client/petstore/perl/t/EnumTestTest.t | 4 +- samples/client/petstore/perl/t/FakeApiTest.t | 45 +++++++++++++++++-- .../perl/t/FakeBigDecimalMap200ResponseTest.t | 4 +- .../perl/t/FakeClassnameTags123ApiTest.t | 4 +- .../petstore/perl/t/FileSchemaTestClassTest.t | 4 +- samples/client/petstore/perl/t/FileTest.t | 4 +- .../perl/t/FooGetDefaultResponseTest.t | 4 +- samples/client/petstore/perl/t/FooTest.t | 4 +- .../client/petstore/perl/t/FormatTestTest.t | 4 +- .../petstore/perl/t/HasOnlyReadOnlyTest.t | 4 +- .../petstore/perl/t/HealthCheckResultTest.t | 4 +- .../perl/t/InlineResponseDefaultTest.t | 34 -------------- samples/client/petstore/perl/t/ListTest.t | 4 +- samples/client/petstore/perl/t/MapTestTest.t | 4 +- ...opertiesAndAdditionalPropertiesClassTest.t | 4 +- .../petstore/perl/t/Model200ResponseTest.t | 4 +- .../client/petstore/perl/t/ModelReturnTest.t | 4 +- samples/client/petstore/perl/t/NameTest.t | 4 +- .../petstore/perl/t/NullableClassTest.t | 4 +- .../client/petstore/perl/t/NumberOnlyTest.t | 4 +- .../perl/t/ObjectWithDeprecatedFieldsTest.t | 4 +- samples/client/petstore/perl/t/OrderTest.t | 4 +- .../petstore/perl/t/OuterCompositeTest.t | 4 +- .../perl/t/OuterEnumDefaultValueTest.t | 4 +- .../perl/t/OuterEnumIntegerDefaultValueTest.t | 4 +- .../petstore/perl/t/OuterEnumIntegerTest.t | 4 +- .../client/petstore/perl/t/OuterEnumTest.t | 4 +- .../perl/t/OuterObjectWithEnumPropertyTest.t | 4 +- .../petstore/perl/t/ParentWithNullableTest.t | 4 +- samples/client/petstore/perl/t/PetApiTest.t | 4 +- samples/client/petstore/perl/t/PetTest.t | 4 +- .../petstore/perl/t/ReadOnlyFirstTest.t | 4 +- .../petstore/perl/t/SingleRefTypeTest.t | 4 +- .../petstore/perl/t/SpecialModelNameTest.t | 4 +- samples/client/petstore/perl/t/StoreApiTest.t | 4 +- samples/client/petstore/perl/t/TagTest.t | 4 +- ...eFreeformAdditionalPropertiesRequestTest.t | 4 +- samples/client/petstore/perl/t/UserApiTest.t | 4 +- samples/client/petstore/perl/t/UserTest.t | 4 +- 61 files changed, 216 insertions(+), 129 deletions(-) delete mode 100644 samples/client/petstore/perl/t/DeprecatedObjectTest.t delete mode 100644 samples/client/petstore/perl/t/InlineResponseDefaultTest.t 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 214c3d03039..d055ddb653d 100644 --- a/modules/openapi-generator/src/main/resources/perl/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/perl/api_test.mustache @@ -4,7 +4,7 @@ # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -29,3 +29,5 @@ isa_ok($api, '{{moduleName}}::{{classname}}'); {{/operation}} {{/operations}} + +done_testing(); 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 394d3daa333..71328bab5af 100644 --- a/modules/openapi-generator/src/main/resources/perl/object_test.mustache +++ b/modules/openapi-generator/src/main/resources/perl/object_test.mustache @@ -4,7 +4,7 @@ # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -23,3 +23,5 @@ use_ok('{{moduleName}}::Object::{{classname}}'); {{/model}} {{/models}} + +done_testing(); diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t index 50c86cef1d3..e070bdb5a33 100644 --- a/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t +++ b/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t b/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t index af22084b963..57a3d195844 100644 --- a/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t +++ b/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::AllOfWithSingleRef'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::AllOfWithSingleRef'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/AnimalTest.t b/samples/client/petstore/perl/t/AnimalTest.t index da13cadf9d6..18cab8c463e 100644 --- a/samples/client/petstore/perl/t/AnimalTest.t +++ b/samples/client/petstore/perl/t/AnimalTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Animal'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Animal'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/AnotherFakeApiTest.t b/samples/client/petstore/perl/t/AnotherFakeApiTest.t index 8efef9bacee..3ae9b65b77a 100644 --- a/samples/client/petstore/perl/t/AnotherFakeApiTest.t +++ b/samples/client/petstore/perl/t/AnotherFakeApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -36,3 +36,5 @@ isa_ok($api, 'WWW::OpenAPIClient::AnotherFakeApi'); #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); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ApiResponseTest.t b/samples/client/petstore/perl/t/ApiResponseTest.t index ba9e4fc212b..c829836d8ee 100644 --- a/samples/client/petstore/perl/t/ApiResponseTest.t +++ b/samples/client/petstore/perl/t/ApiResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ApiResponse'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ApiResponse'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t b/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t index 80ea0374e83..e0bd8ea4d8b 100644 --- a/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t +++ b/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t b/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t index aa9c6570906..72d70684d12 100644 --- a/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t +++ b/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ArrayTestTest.t b/samples/client/petstore/perl/t/ArrayTestTest.t index d2b1188f08c..049602de00c 100644 --- a/samples/client/petstore/perl/t/ArrayTestTest.t +++ b/samples/client/petstore/perl/t/ArrayTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ArrayTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/CapitalizationTest.t b/samples/client/petstore/perl/t/CapitalizationTest.t index b9809bd1aa7..72e016bc500 100644 --- a/samples/client/petstore/perl/t/CapitalizationTest.t +++ b/samples/client/petstore/perl/t/CapitalizationTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Capitalization'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Capitalization'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/CatTest.t b/samples/client/petstore/perl/t/CatTest.t index 56df7dee63d..25f86073a47 100644 --- a/samples/client/petstore/perl/t/CatTest.t +++ b/samples/client/petstore/perl/t/CatTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Cat'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Cat'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/CategoryTest.t b/samples/client/petstore/perl/t/CategoryTest.t index bcb06e64554..e4e949b1d9d 100644 --- a/samples/client/petstore/perl/t/CategoryTest.t +++ b/samples/client/petstore/perl/t/CategoryTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Category'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Category'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ChildWithNullableTest.t b/samples/client/petstore/perl/t/ChildWithNullableTest.t index 2823fc4b3cc..86e8d4352ed 100644 --- a/samples/client/petstore/perl/t/ChildWithNullableTest.t +++ b/samples/client/petstore/perl/t/ChildWithNullableTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ChildWithNullable'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ChildWithNullable'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ClassModelTest.t b/samples/client/petstore/perl/t/ClassModelTest.t index cdbae32e3ca..6e6aa0364d9 100644 --- a/samples/client/petstore/perl/t/ClassModelTest.t +++ b/samples/client/petstore/perl/t/ClassModelTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ClassModel'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ClassModel'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ClientTest.t b/samples/client/petstore/perl/t/ClientTest.t index 6861bc97153..d46030b063c 100644 --- a/samples/client/petstore/perl/t/ClientTest.t +++ b/samples/client/petstore/perl/t/ClientTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Client'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Client'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/DefaultApiTest.t b/samples/client/petstore/perl/t/DefaultApiTest.t index 16155a2d403..9ff3f08a58e 100644 --- a/samples/client/petstore/perl/t/DefaultApiTest.t +++ b/samples/client/petstore/perl/t/DefaultApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -35,3 +35,5 @@ isa_ok($api, 'WWW::OpenAPIClient::DefaultApi'); # uncomment below and update the test #my $foo_get_result = $api->foo_get(); + +done_testing(); diff --git a/samples/client/petstore/perl/t/DeprecatedModelTest.t b/samples/client/petstore/perl/t/DeprecatedModelTest.t index eae5d838bc9..f39c9912493 100644 --- a/samples/client/petstore/perl/t/DeprecatedModelTest.t +++ b/samples/client/petstore/perl/t/DeprecatedModelTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::DeprecatedModel'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::DeprecatedModel'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/DeprecatedObjectTest.t b/samples/client/petstore/perl/t/DeprecatedObjectTest.t deleted file mode 100644 index 485a695b4bb..00000000000 --- a/samples/client/petstore/perl/t/DeprecatedObjectTest.t +++ /dev/null @@ -1,34 +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::DeprecatedObject'); - -# uncomment below and update the test -#my $instance = WWW::OpenAPIClient::Object::DeprecatedObject->new(); -# -#isa_ok($instance, 'WWW::OpenAPIClient::Object::DeprecatedObject'); - diff --git a/samples/client/petstore/perl/t/DogTest.t b/samples/client/petstore/perl/t/DogTest.t index 285ce98c707..7f1c0785c3c 100644 --- a/samples/client/petstore/perl/t/DogTest.t +++ b/samples/client/petstore/perl/t/DogTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Dog'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Dog'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/EnumArraysTest.t b/samples/client/petstore/perl/t/EnumArraysTest.t index 6be5ccb047b..986587af012 100644 --- a/samples/client/petstore/perl/t/EnumArraysTest.t +++ b/samples/client/petstore/perl/t/EnumArraysTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::EnumArrays'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumArrays'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/EnumClassTest.t b/samples/client/petstore/perl/t/EnumClassTest.t index 4e22665ef6c..d7995647816 100644 --- a/samples/client/petstore/perl/t/EnumClassTest.t +++ b/samples/client/petstore/perl/t/EnumClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::EnumClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/EnumTestTest.t b/samples/client/petstore/perl/t/EnumTestTest.t index 8a84c3417d9..22b745c32c0 100644 --- a/samples/client/petstore/perl/t/EnumTestTest.t +++ b/samples/client/petstore/perl/t/EnumTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::EnumTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FakeApiTest.t b/samples/client/petstore/perl/t/FakeApiTest.t index 512767a782b..35d84c36f45 100644 --- a/samples/client/petstore/perl/t/FakeApiTest.t +++ b/samples/client/petstore/perl/t/FakeApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -29,6 +29,12 @@ use_ok('WWW::OpenAPIClient::FakeApi'); my $api = WWW::OpenAPIClient::FakeApi->new(); isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); +# +# fake_big_decimal_map test +# +# uncomment below and update the test +#my $fake_big_decimal_map_result = $api->fake_big_decimal_map(); + # # fake_health_get test # @@ -79,6 +85,20 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #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_additional_properties_reference test +# +# uncomment below and update the test +#my $test_additional_properties_reference_request_body = undef; # replace NULL with a proper value +#my $test_additional_properties_reference_result = $api->test_additional_properties_reference(request_body => $test_additional_properties_reference_request_body); + +# +# test_body_with_binary test +# +# uncomment below and update the test +#my $test_body_with_binary_body = undef; # replace NULL with a proper value +#my $test_body_with_binary_result = $api->test_body_with_binary(body => $test_body_with_binary_body); + # # test_body_with_file_schema test # @@ -131,9 +151,10 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #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_query_model_array = 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); +#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_query_model_array => $test_enum_parameters_enum_query_model_array, enum_form_string_array => $test_enum_parameters_enum_form_string_array, enum_form_string => $test_enum_parameters_enum_form_string); # # test_group_parameters test @@ -154,6 +175,13 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #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_inline_freeform_additional_properties test +# +# uncomment below and update the test +#my $test_inline_freeform_additional_properties_test_inline_freeform_additional_properties_request = undef; # replace NULL with a proper value +#my $test_inline_freeform_additional_properties_result = $api->test_inline_freeform_additional_properties(test_inline_freeform_additional_properties_request => $test_inline_freeform_additional_properties_test_inline_freeform_additional_properties_request); + # # test_json_form_data test # @@ -162,6 +190,13 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #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_nullable test +# +# uncomment below and update the test +#my $test_nullable_child_with_nullable = undef; # replace NULL with a proper value +#my $test_nullable_result = $api->test_nullable(child_with_nullable => $test_nullable_child_with_nullable); + # # test_query_parameter_collection_format test # @@ -171,5 +206,9 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #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); +#my $test_query_parameter_collection_format_allow_empty = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_language = 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, allow_empty => $test_query_parameter_collection_format_allow_empty, language => $test_query_parameter_collection_format_language); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t b/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t index 49fa018db70..6eaeb38b785 100644 --- a/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t +++ b/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FakeBigDecimalMap200Response'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FakeBigDecimalMap200Response'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t b/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t index 6bbbac594b8..c406e3f10e1 100644 --- a/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t +++ b/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -36,3 +36,5 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeClassnameTags123Api'); #my $test_classname_client = undef; # replace NULL with a proper value #my $test_classname_result = $api->test_classname(client => $test_classname_client); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FileSchemaTestClassTest.t b/samples/client/petstore/perl/t/FileSchemaTestClassTest.t index 040d6d95596..8d3a4ec7c16 100644 --- a/samples/client/petstore/perl/t/FileSchemaTestClassTest.t +++ b/samples/client/petstore/perl/t/FileSchemaTestClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FileSchemaTestClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FileSchemaTestClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FileTest.t b/samples/client/petstore/perl/t/FileTest.t index 59a96f574cd..d23c43e7072 100644 --- a/samples/client/petstore/perl/t/FileTest.t +++ b/samples/client/petstore/perl/t/FileTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::File'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::File'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t b/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t index 407f118a09f..1ae981b99a9 100644 --- a/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t +++ b/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FooGetDefaultResponse'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FooGetDefaultResponse'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FooTest.t b/samples/client/petstore/perl/t/FooTest.t index 5ce9e8b66a4..7c5fc34b0b3 100644 --- a/samples/client/petstore/perl/t/FooTest.t +++ b/samples/client/petstore/perl/t/FooTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Foo'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Foo'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FormatTestTest.t b/samples/client/petstore/perl/t/FormatTestTest.t index 78bf3cafb1d..28add9f0225 100644 --- a/samples/client/petstore/perl/t/FormatTestTest.t +++ b/samples/client/petstore/perl/t/FormatTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FormatTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FormatTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t b/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t index 8c4007b946a..695dd390585 100644 --- a/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t +++ b/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::HasOnlyReadOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::HasOnlyReadOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/HealthCheckResultTest.t b/samples/client/petstore/perl/t/HealthCheckResultTest.t index 6e5e4b0f964..cd900959db9 100644 --- a/samples/client/petstore/perl/t/HealthCheckResultTest.t +++ b/samples/client/petstore/perl/t/HealthCheckResultTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::HealthCheckResult'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::HealthCheckResult'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/InlineResponseDefaultTest.t b/samples/client/petstore/perl/t/InlineResponseDefaultTest.t deleted file mode 100644 index 2b3da22fde3..00000000000 --- a/samples/client/petstore/perl/t/InlineResponseDefaultTest.t +++ /dev/null @@ -1,34 +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::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 484f357bcb3..8939200d196 100644 --- a/samples/client/petstore/perl/t/ListTest.t +++ b/samples/client/petstore/perl/t/ListTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::List'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::List'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/MapTestTest.t b/samples/client/petstore/perl/t/MapTestTest.t index 08e0e76365e..ad4289f0aca 100644 --- a/samples/client/petstore/perl/t/MapTestTest.t +++ b/samples/client/petstore/perl/t/MapTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::MapTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::MapTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t b/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t index 32fc58f324e..4f87f4e8a0a 100644 --- a/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t +++ b/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass' # #isa_ok($instance, 'WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/Model200ResponseTest.t b/samples/client/petstore/perl/t/Model200ResponseTest.t index 603e1c1471c..2e7a0b218e7 100644 --- a/samples/client/petstore/perl/t/Model200ResponseTest.t +++ b/samples/client/petstore/perl/t/Model200ResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Model200Response'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Model200Response'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ModelReturnTest.t b/samples/client/petstore/perl/t/ModelReturnTest.t index 283ed51adae..06b2e2e3865 100644 --- a/samples/client/petstore/perl/t/ModelReturnTest.t +++ b/samples/client/petstore/perl/t/ModelReturnTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ModelReturn'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ModelReturn'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/NameTest.t b/samples/client/petstore/perl/t/NameTest.t index eb0f0e9bc88..318a4b2c0b7 100644 --- a/samples/client/petstore/perl/t/NameTest.t +++ b/samples/client/petstore/perl/t/NameTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Name'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Name'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/NullableClassTest.t b/samples/client/petstore/perl/t/NullableClassTest.t index 932dfe3a950..2841320be93 100644 --- a/samples/client/petstore/perl/t/NullableClassTest.t +++ b/samples/client/petstore/perl/t/NullableClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::NullableClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::NullableClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/NumberOnlyTest.t b/samples/client/petstore/perl/t/NumberOnlyTest.t index 710bddd6340..62c30491ddd 100644 --- a/samples/client/petstore/perl/t/NumberOnlyTest.t +++ b/samples/client/petstore/perl/t/NumberOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::NumberOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::NumberOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t b/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t index 008d6996ca7..430852006ba 100644 --- a/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t +++ b/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ObjectWithDeprecatedFields'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ObjectWithDeprecatedFields'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OrderTest.t b/samples/client/petstore/perl/t/OrderTest.t index 08499ad4d9c..bff5005086d 100644 --- a/samples/client/petstore/perl/t/OrderTest.t +++ b/samples/client/petstore/perl/t/OrderTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Order'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Order'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterCompositeTest.t b/samples/client/petstore/perl/t/OuterCompositeTest.t index 3e23fa93c33..37dbafbdafc 100644 --- a/samples/client/petstore/perl/t/OuterCompositeTest.t +++ b/samples/client/petstore/perl/t/OuterCompositeTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterComposite'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterComposite'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t b/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t index 7b52c276fa0..329ebfbb577 100644 --- a/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t +++ b/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t b/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t index 56e114ab16a..af7cd3c4632 100644 --- a/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t +++ b/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumIntegerTest.t b/samples/client/petstore/perl/t/OuterEnumIntegerTest.t index b10b2e69d45..615a6d7935b 100644 --- a/samples/client/petstore/perl/t/OuterEnumIntegerTest.t +++ b/samples/client/petstore/perl/t/OuterEnumIntegerTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnumInteger'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumInteger'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumTest.t b/samples/client/petstore/perl/t/OuterEnumTest.t index 39fd4426281..2a50627284e 100644 --- a/samples/client/petstore/perl/t/OuterEnumTest.t +++ b/samples/client/petstore/perl/t/OuterEnumTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnum'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnum'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t b/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t index b28dd8492b3..29a7add8357 100644 --- a/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t +++ b/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ParentWithNullableTest.t b/samples/client/petstore/perl/t/ParentWithNullableTest.t index 8ee9800aa3c..18e976dfc02 100644 --- a/samples/client/petstore/perl/t/ParentWithNullableTest.t +++ b/samples/client/petstore/perl/t/ParentWithNullableTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ParentWithNullable'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ParentWithNullable'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/PetApiTest.t b/samples/client/petstore/perl/t/PetApiTest.t index 479af7c718f..666dc67c146 100644 --- a/samples/client/petstore/perl/t/PetApiTest.t +++ b/samples/client/petstore/perl/t/PetApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -99,3 +99,5 @@ isa_ok($api, 'WWW::OpenAPIClient::PetApi'); #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); + +done_testing(); diff --git a/samples/client/petstore/perl/t/PetTest.t b/samples/client/petstore/perl/t/PetTest.t index 988648c4ed3..b2f3809fc3c 100644 --- a/samples/client/petstore/perl/t/PetTest.t +++ b/samples/client/petstore/perl/t/PetTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Pet'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Pet'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ReadOnlyFirstTest.t b/samples/client/petstore/perl/t/ReadOnlyFirstTest.t index cf136039203..f6d7694aafe 100644 --- a/samples/client/petstore/perl/t/ReadOnlyFirstTest.t +++ b/samples/client/petstore/perl/t/ReadOnlyFirstTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ReadOnlyFirst'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ReadOnlyFirst'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/SingleRefTypeTest.t b/samples/client/petstore/perl/t/SingleRefTypeTest.t index 652ac5797d0..ecd3bf0547c 100644 --- a/samples/client/petstore/perl/t/SingleRefTypeTest.t +++ b/samples/client/petstore/perl/t/SingleRefTypeTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::SingleRefType'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::SingleRefType'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/SpecialModelNameTest.t b/samples/client/petstore/perl/t/SpecialModelNameTest.t index 8048dd3ab30..a30bde97be5 100644 --- a/samples/client/petstore/perl/t/SpecialModelNameTest.t +++ b/samples/client/petstore/perl/t/SpecialModelNameTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::SpecialModelName'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::SpecialModelName'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/StoreApiTest.t b/samples/client/petstore/perl/t/StoreApiTest.t index c2dcf8cd64b..bf9d3db403c 100644 --- a/samples/client/petstore/perl/t/StoreApiTest.t +++ b/samples/client/petstore/perl/t/StoreApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -56,3 +56,5 @@ isa_ok($api, 'WWW::OpenAPIClient::StoreApi'); #my $place_order_order = undef; # replace NULL with a proper value #my $place_order_result = $api->place_order(order => $place_order_order); + +done_testing(); diff --git a/samples/client/petstore/perl/t/TagTest.t b/samples/client/petstore/perl/t/TagTest.t index 1a5b2ee23ae..d2ddd0c304e 100644 --- a/samples/client/petstore/perl/t/TagTest.t +++ b/samples/client/petstore/perl/t/TagTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Tag'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Tag'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t b/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t index 32d797e4c40..76b05931eaa 100644 --- a/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t +++ b/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::TestInlineFreeformAdditionalPropertiesReques # #isa_ok($instance, 'WWW::OpenAPIClient::Object::TestInlineFreeformAdditionalPropertiesRequest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/UserApiTest.t b/samples/client/petstore/perl/t/UserApiTest.t index a79d1fc2570..66f9e9ce6f7 100644 --- a/samples/client/petstore/perl/t/UserApiTest.t +++ b/samples/client/petstore/perl/t/UserApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -86,3 +86,5 @@ isa_ok($api, 'WWW::OpenAPIClient::UserApi'); #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); + +done_testing(); diff --git a/samples/client/petstore/perl/t/UserTest.t b/samples/client/petstore/perl/t/UserTest.t index 1e678b9efeb..35c464d7556 100644 --- a/samples/client/petstore/perl/t/UserTest.t +++ b/samples/client/petstore/perl/t/UserTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::User'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::User'); + +done_testing();