forked from loafle/openapi-generator-original
* 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>
61 lines
1.4 KiB
Perl
61 lines
1.4 KiB
Perl
=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;
|
|
use Test::Exception;
|
|
|
|
use lib 'lib';
|
|
use strict;
|
|
use warnings;
|
|
|
|
use_ok('WWW::OpenAPIClient::StoreApi');
|
|
|
|
my $api = WWW::OpenAPIClient::StoreApi->new();
|
|
isa_ok($api, 'WWW::OpenAPIClient::StoreApi');
|
|
|
|
#
|
|
# delete_order test
|
|
#
|
|
# 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
|
|
#
|
|
# uncomment below and update the test
|
|
#my $get_inventory_result = $api->get_inventory();
|
|
|
|
#
|
|
# get_order_by_id test
|
|
#
|
|
# 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
|
|
#
|
|
# 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);
|
|
|
|
|
|
done_testing();
|