Skip to content

Commit 182419a

Browse files
committed
Fix: exceptions
1 parent b2d838f commit 182419a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

coderd/coderdtest/swaggerparser.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ func assertProduce(t *testing.T, comment SwaggerComment) {
317317
if hasResponseModel {
318318
assert.True(t, comment.produce != "", "Route must have @Produce annotation as it responds with a model structure")
319319
} else {
320+
if (comment.router == "/workspaceagents/me/app-health" && comment.method == "post") ||
321+
(comment.router == "/workspaceagents/me/version" && comment.method == "post") ||
322+
(comment.router == "/licenses/{id}" && comment.method == "delete") {
323+
return // Exception: HTTP 200 is returned without response entity
324+
}
325+
320326
assert.True(t, comment.produce == "", "Response model is undefined, so we can't predict the content type", comment)
321327
}
322328
}

0 commit comments

Comments
 (0)