mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-28 20:40:52 +00:00
99 lines
2.0 KiB
Perl
99 lines
2.0 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 tests => 1; #TODO update number of test cases
|
|
use Test::Exception;
|
|
|
|
use lib 'lib';
|
|
use strict;
|
|
use warnings;
|
|
|
|
use_ok('WWW::OpenAPIClient::UserApi');
|
|
|
|
my $api = WWW::OpenAPIClient::UserApi->new();
|
|
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);
|
|
}
|
|
|
|
#
|
|
# 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);
|
|
}
|
|
|
|
#
|
|
# 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);
|
|
}
|
|
|
|
#
|
|
# delete_user test
|
|
#
|
|
{
|
|
my $username = undef; # replace NULL with a proper value
|
|
my $result = $api->delete_user(username => $username);
|
|
}
|
|
|
|
#
|
|
# get_user_by_name test
|
|
#
|
|
{
|
|
my $username = undef; # replace NULL with a proper value
|
|
my $result = $api->get_user_by_name(username => $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);
|
|
}
|
|
|
|
#
|
|
# logout_user test
|
|
#
|
|
{
|
|
my $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);
|
|
}
|
|
|
|
|
|
1;
|