Skip to content

Commit

Permalink
Incerase await time (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
apurbraj authored May 22, 2024
1 parent e0c664b commit 89c5930
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public void iAmAbleToParseSubBatchSummaryResponse() {

@And("I call the sub batch summary API for sub batch summary with expected status of {int}")
public void iCallTheSubBatchSummaryAPIForSubBatchSummaryWithExpectedStatusOf(int expectedStatus) {
await().atMost(awaitMost, SECONDS).pollDelay(pollDelay, SECONDS).pollInterval(pollInterval, SECONDS).untilAsserted(() -> {
await().atMost(awaitMost + 15, SECONDS).pollDelay(pollDelay, SECONDS).pollInterval(pollInterval, SECONDS).untilAsserted(() -> {
RequestSpecification requestSpec = Utils.getDefaultSpec(scenarioScopeState.tenant);
requestSpec.header("X-Correlation-ID", scenarioScopeState.clientCorrelationId);
if (authEnabled) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public void iCallTheVoucherCreateAPIHavingInvalidHeaderWithExpectedStatusOf(int
scenarioScopeState.registeringInstitutionId = "SocialWelfare";
scenarioScopeState.response = RestAssured.given(requestSpec).header("Content-Type", "application/json")
.header("X-CallbackURL", identityMapperConfig.callbackURL + stub)
.header("X-Registering-Institution-ID", scenarioScopeState.registeringInstitutionId)
.header("invalid-header", "test")
.header("X-Registering-Institution-ID", scenarioScopeState.registeringInstitutionId).header("invalid-header", "test")
.baseUri(voucherManagementConfig.voucherManagementContactPoint).body(scenarioScopeState.createVoucherBody).expect()
.spec(new ResponseSpecBuilder().expectStatusCode(expectedStatus).build()).when()
.post(voucherManagementConfig.createVoucherEndpoint).andReturn().asString();
Expand Down
10 changes: 6 additions & 4 deletions src/test/java/resources/identityMapperTest.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ Feature: Identity Account Mapper Api Test
When I call the account lookup API with expected status of 202 and stub "/accountLookupTest"
# Then I will sleep for 3000 millisecond
And I should be able to verify that the "PUT" method to "/accountLookupTest" endpoint received a request with same payeeIdentity
@gov
Scenario: IAM-005 Account Lookup Api Consistency Test
When I call the account lookup API 10 times with expected status of 202 and stub "/accountLookup"
# Then I will sleep for 3000 millisecond

@gov
Scenario: UB-003 Update a single beneficiary with Payment Modality - Mobile Money
When I create an IdentityMapperDTO for 1 Register Beneficiary with payment modality as "ACCOUNT_ID"
Expand Down Expand Up @@ -297,6 +294,11 @@ Feature: Identity Account Mapper Api Test
When I call the update beneficiary API with expected status of 202 and stub "/updateBeneficiaryApiTest"
# Then I will sleep for 3000 millisecond
Then I should be able to verify that the "PUT" method to "/updateBeneficiaryApiTest" endpoint received a request with no of failed cases as 2

@gov
Scenario: IAM-005 Account Lookup Api Consistency Test
When I call the account lookup API 10 times with expected status of 202 and stub "/accountLookup"
# Then I will sleep for 3000 millisecond
And I can stop mock server


Expand Down

0 comments on commit 89c5930

Please sign in to comment.