forked from loafle/openapi-generator-original
remove old petstore powershell sample
This commit is contained in:
37
samples/client/petstore/powershell/test/StoreApiTest.ps1
Normal file
37
samples/client/petstore/powershell/test/StoreApiTest.ps1
Normal file
@@ -0,0 +1,37 @@
|
||||
# This file is auto-generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen)
|
||||
# Please replace "TEST_VALUE" with a proper value and uncomment the code for testing the function
|
||||
|
||||
Describe 'IO.Swagger StoreApi' {
|
||||
Context 'StoreApi' {
|
||||
It 'Invoke-StoreApiDeleteOrder' {
|
||||
$ret = Invoke-PetApiGetPetById -orderId "TEST_VALUE"
|
||||
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
|
||||
#$ret.property | Should Be 0
|
||||
}
|
||||
}
|
||||
|
||||
Context 'StoreApi' {
|
||||
It 'Invoke-StoreApiGetInventory' {
|
||||
$ret = Invoke-PetApiGetPetById
|
||||
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
|
||||
#$ret.property | Should Be 0
|
||||
}
|
||||
}
|
||||
|
||||
Context 'StoreApi' {
|
||||
It 'Invoke-StoreApiGetOrderById' {
|
||||
$ret = Invoke-PetApiGetPetById -orderId "TEST_VALUE"
|
||||
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
|
||||
#$ret.property | Should Be 0
|
||||
}
|
||||
}
|
||||
|
||||
Context 'StoreApi' {
|
||||
It 'Invoke-StoreApiPlaceOrder' {
|
||||
$ret = Invoke-PetApiGetPetById -body "TEST_VALUE"
|
||||
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
|
||||
#$ret.property | Should Be 0
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user