Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tsp, migrate test-proxy swagger to tsp #9451

Merged
merged 9 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task Invoke(HttpContext context)
var bodyObj = new
{
Message = e.Message,
Status = e.StatusCode.ToString()
Status = e.StatusCode
};

DebugLogger.LogError(e.Message);
Expand All @@ -85,7 +85,7 @@ public async Task Invoke(HttpContext context)
var bodyObj = new
{
Message = e.Message,
Status = unexpectedStatusCode.ToString(),
Status = unexpectedStatusCode,
StackTrace = e.StackTrace,
};

Expand Down
13 changes: 13 additions & 0 deletions tools/test-proxy/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,16 @@ extends:
- pwsh: |
#vso[task.setvariable variable=COMPlus_Pkcs12UnspecifiedPasswordIterationLimit]-1
displayName: Override Acceptable Password Iteration Count
TestPostSteps:
- task: NodeTool@0
inputs:
versionSpec: 20.x
displayName: "Use Node 20"
- pwsh: |
npm install -g @typespec/compiler
displayName: Install typespec and tooling
- pwsh: |
npm ci
tsp compile .
displayName: TSP Compile
workingDirectory: tools/test-proxy/typespec
Loading
Loading