Skip to content

Commit

Permalink
[PowerShell] add more tests to powershell client (OpenAPITools#12057)
Browse files Browse the repository at this point in the history
* add more tests to powershell client

* update spec

* update method name

* add new file
  • Loading branch information
wing328 authored Apr 6, 2022
1 parent a596d5a commit a7e9278
Show file tree
Hide file tree
Showing 246 changed files with 16,102 additions and 205 deletions.
9 changes: 1 addition & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,8 @@ test_script:

# test ps petstore
- ps: |
$ErrorActionPreference = "Stop"
cd samples\client\petstore\powershell\
.\Build.ps1
Import-Module -Name '.\src\PSPetstore'
$Result = Invoke-Pester -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount
}
.\CIRunTest.ps1
cache:
- C:\maven\
- C:\gradle\
Expand Down
2 changes: 1 addition & 1 deletion bin/configs/powershell.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
generatorName: powershell
outputDir: samples/client/petstore/powershell
inputSpec: modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml
inputSpec: modules/openapi-generator/src/test/resources/3_0/powershell/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
templateDir: modules/openapi-generator/src/main/resources/powershell
additionalProperties:
packageGuid: a27b908d-2a20-467f-bc32-af6f3a654ac5
Expand Down
Loading

0 comments on commit a7e9278

Please sign in to comment.