mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 00:56:16 +00:00
hide generation timestamp for perl (#4614)
This commit is contained in:
102
samples/client/petstore/perl/t/PetApiTest.t
Normal file
102
samples/client/petstore/perl/t/PetApiTest.t
Normal file
@@ -0,0 +1,102 @@
|
||||
=begin comment
|
||||
|
||||
Swagger 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
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
=end comment
|
||||
|
||||
=cut
|
||||
|
||||
#
|
||||
# NOTE: This class is auto generated by Swagger Codegen
|
||||
# Please update the test cases below to test the API endpoints.
|
||||
# Ref: https://github.com/swagger-api/swagger-codegen
|
||||
#
|
||||
use Test::More tests => 1; #TODO update number of test cases
|
||||
use Test::Exception;
|
||||
|
||||
use lib 'lib';
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use_ok('WWW::SwaggerClient::PetApi');
|
||||
|
||||
my $api = WWW::SwaggerClient::PetApi->new();
|
||||
isa_ok($api, 'WWW::SwaggerClient::PetApi');
|
||||
|
||||
#
|
||||
# add_pet test
|
||||
#
|
||||
{
|
||||
my $body = undef; # replace NULL with a proper value
|
||||
my $result = $api->add_pet(body => $body);
|
||||
}
|
||||
|
||||
#
|
||||
# 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);
|
||||
}
|
||||
|
||||
#
|
||||
# find_pets_by_status test
|
||||
#
|
||||
{
|
||||
my $status = undef; # replace NULL with a proper value
|
||||
my $result = $api->find_pets_by_status(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);
|
||||
}
|
||||
|
||||
#
|
||||
# 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);
|
||||
}
|
||||
|
||||
#
|
||||
# update_pet test
|
||||
#
|
||||
{
|
||||
my $body = undef; # replace NULL with a proper value
|
||||
my $result = $api->update_pet(body => $body);
|
||||
}
|
||||
|
||||
#
|
||||
# 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);
|
||||
}
|
||||
|
||||
#
|
||||
# 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);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user