Skip to content

Commit

Permalink
feat: 脚本开放管理类API TencentBlueKing#2318
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliaozhong committed Nov 2, 2023
1 parent e7bedd4 commit dd5b403
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 213 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,6 @@ public static ResponseSpecification successResponseSpec() {
return builder.build();
}

/**
* 失败响应通用设置
*/
public static ResponseSpecification failResponseSpec() {
ResponseSpecBuilder builder = new ResponseSpecBuilder();
builder.expectStatusCode(200);
builder.expectBody("result", equalTo(false));
builder.expectBody("code", equalTo(ErrorCode.BAD_REQUEST));
return builder.build();
}

/**
* 失败响应通用设置
*/
Expand Down
Loading

0 comments on commit dd5b403

Please sign in to comment.