Skip to content

Commit

Permalink
Update test cases by removing OpenApiValidationFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Shenali-SJ committed Dec 2, 2024
1 parent f989e04 commit 53c5cf7
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,18 @@ protected Response getResponseOfPost(String endpointUri, String body) {
.post(endpointUri);
}

protected Response getResponseOfPostNoFilter(String endpointUri, String body) {

return given().auth().preemptive().basic(authenticatingUserName, authenticatingCredential)
.contentType(ContentType.JSON)
.header(HttpHeaders.ACCEPT, ContentType.JSON)
.body(body)
.log().ifValidationFails()
.when()
.log().ifValidationFails()
.post(endpointUri);
}

/**
* Invoke given endpointUri for POST with given body and Basic authentication, authentication credential being the
* authenticatingUserName and authenticatingCredential
Expand Down
Loading

0 comments on commit 53c5cf7

Please sign in to comment.