Skip to content

Commit

Permalink
applied filter to reduce the no.of records displaying on console
Browse files Browse the repository at this point in the history
  • Loading branch information
rajanigandra authored and RustyHMCTS committed May 20, 2024
1 parent 00ac7d0 commit 6089ea8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ public class BusinessUnitsStepDef extends BaseStepDef {

static Logger log = LoggerFactory.getLogger(BusinessUnitsStepDef.class.getName());

@When("I make a request to the business unit ref data api")
public void getRequestToBusinessUnitRefData() {
@When("I make a request to the business unit ref data api filtering by business unit type {string}")
public void getRequestToBusinessUnitRefData(String filter) {

SerenityRest
.given()
.accept("*/*")
.header("Authorization", "Bearer " + getToken())
.contentType("application/json")
.when()
.get(getTestUrl() + BUSINESS_UNIT_REF_DATA_URI)
.then().log().all();
.get(getTestUrl() + BUSINESS_UNIT_REF_DATA_URI + filter);

}

Expand All @@ -38,4 +38,5 @@ public void theRefDataMatchingToResult() {
.statusCode(200)
.body("count", Matchers.equalTo(refDataList));
}

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

@Opal @PO-313
Feature: Verifying the end points for business units


Scenario: verifying the end points for API for Business Units Ref Data
Given I am testing as the "opal-test@hmcts.net" user
When I make a request to the business unit ref data api
When I make a request to the business unit ref data api filtering by business unit type "area"
Then the business unit ref data matching to result

0 comments on commit 6089ea8

Please sign in to comment.