=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 OpenAPI Generator # 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::Exception; use lib 'lib'; use strict; use warnings; use_ok('WWW::OpenAPIClient::PetApi'); my $api = WWW::OpenAPIClient::PetApi->new(); 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); } # # 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 $pet = undef; # replace NULL with a proper value my $result = $api->update_pet(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); } # # 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); } # # 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); } 1;