forked from loafle/openapi-generator-original
70 lines
2.3 KiB
PowerShell
70 lines
2.3 KiB
PowerShell
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
# Please replace "TEST_VALUE" with a proper value and uncomment the code for testing the function
|
|
|
|
Describe 'Org.OpenAPITools PetApi' {
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiAddPet' {
|
|
$ret = Invoke-PetApiGetPetById -pet "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiDeletePet' {
|
|
$ret = Invoke-PetApiGetPetById -petId "TEST_VALUE" -apiKey "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiFindPetsByStatus' {
|
|
$ret = Invoke-PetApiGetPetById -status "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiFindPetsByTags' {
|
|
$ret = Invoke-PetApiGetPetById -tags "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiGetPetById' {
|
|
$ret = Invoke-PetApiGetPetById -petId "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiUpdatePet' {
|
|
$ret = Invoke-PetApiGetPetById -pet "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiUpdatePetWithForm' {
|
|
$ret = Invoke-PetApiGetPetById -petId "TEST_VALUE" -name "TEST_VALUE" -status "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
Context 'PetApi' {
|
|
It 'Invoke-PetApiUploadFile' {
|
|
$ret = Invoke-PetApiGetPetById -petId "TEST_VALUE" -additionalMetadata "TEST_VALUE" -file "TEST_VALUE"
|
|
#$ret | Should BeOfType Org.OpenAPITools.Model.ModelNameHere
|
|
#$ret.property | Should Be 0
|
|
}
|
|
}
|
|
|
|
}
|