From 9797c9e32010a2869b1e53ee23be069e66abf188 Mon Sep 17 00:00:00 2001 From: Apurb Rajdhan <103931815+apurbraj@users.noreply.github.com> Date: Tue, 7 May 2024 13:06:20 +0530 Subject: [PATCH] fix --- .../integrationtest/cucumber/stepdef/BatchApiStepDef.java | 2 +- .../java/resources/batch_demo_csv/ph-ee-bulk-demo-7.csv | 6 +++--- src/test/java/resources/bulkPayment.feature | 6 +++--- src/test/java/resources/identityMapperTest.feature | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/org/mifos/integrationtest/cucumber/stepdef/BatchApiStepDef.java b/src/test/java/org/mifos/integrationtest/cucumber/stepdef/BatchApiStepDef.java index 8b3cbfff7..6ed260540 100644 --- a/src/test/java/org/mifos/integrationtest/cucumber/stepdef/BatchApiStepDef.java +++ b/src/test/java/org/mifos/integrationtest/cucumber/stepdef/BatchApiStepDef.java @@ -620,7 +620,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 + 10, SECONDS).pollDelay(pollDelay, SECONDS).pollInterval(pollInterval, SECONDS).untilAsserted(() -> { RequestSpecification requestSpec = Utils.getDefaultSpec(scenarioScopeState.tenant); requestSpec.header("X-Correlation-ID", scenarioScopeState.clientCorrelationId); if (authEnabled) { diff --git a/src/test/java/resources/batch_demo_csv/ph-ee-bulk-demo-7.csv b/src/test/java/resources/batch_demo_csv/ph-ee-bulk-demo-7.csv index f3bcd6327..c86b1ed11 100644 --- a/src/test/java/resources/batch_demo_csv/ph-ee-bulk-demo-7.csv +++ b/src/test/java/resources/batch_demo_csv/ph-ee-bulk-demo-7.csv @@ -1,4 +1,4 @@ id,request_id,payment_mode,payer_identifier_type,payer_identifier,payee_identifier_type,payee_identifier,amount,currency,note -0,f1e22fe3-9740-4fba-97b6-78f43bfa7f2f,mojaloop,accountNumber,003001003879112168,accountNumber,103873110196,850,USD,Test Payee Payment -1,72aa3ea4-e6f6-4880-877f-39f6ac4d052e,mojaloop,accountNumber,003001003879112168,accountNumber,103874120160,222,USD,Test Payee Payment -2,f1e22fe3-9740-4fba-97b6-78f43bfa7f2f,mojaloop,accountNumber,003001003879112168,accountNumber,103873110195,840,USD,Test Payee Payment \ No newline at end of file +0,f1e22fe3-9740-4fba-97b6-78f43bfa7f2f,mojaloop,accountNumber,0030010038791121681,accountNumber,103873110196,850,USD,Test Payee Payment +1,72aa3ea4-e6f6-4880-877f-39f6ac4d052e,mojaloop,accountNumber,0030010038791121683,accountNumber,103874120160,222,USD,Test Payee Payment +2,f1e22fe3-9740-4fba-97b6-78f43bfa7f2f,mojaloop,accountNumber,0030010038791121684,accountNumber,103873110195,840,USD,Test Payee Payment \ No newline at end of file diff --git a/src/test/java/resources/bulkPayment.feature b/src/test/java/resources/bulkPayment.feature index 262c916e9..32d925f32 100644 --- a/src/test/java/resources/bulkPayment.feature +++ b/src/test/java/resources/bulkPayment.feature @@ -1,7 +1,7 @@ @gov @ext Feature: Test ability to make payment to individual with bank account - Scenario: Input CSV file using the batch transaction API and poll batch summary API till we get completed status + Scenario: Input CSV file using the batch transaction API and poll batch summary API till we get completed status [WIP] Given I have tenant as "paymentbb1" And I have the demo csv file "bulk_payment.csv" And I create a list of payee identifiers from csv file @@ -25,7 +25,7 @@ Feature: Test ability to make payment to individual with bank account And Status of transaction is "COMPLETED" And I should have matching total txn count and successful txn count in response - Scenario: Bulk Transfer with ClosedLoop and Mojaloop + Scenario: Bulk Transfer with ClosedLoop and Mojaloop [WIP] Given I have tenant as "paymentbb1" And I have the demo csv file "bulk_payment_closedl_mock_mojaloop.csv" And I create a list of payee identifiers from csv file @@ -49,7 +49,7 @@ Feature: Test ability to make payment to individual with bank account And Status of transaction is "COMPLETED" And My total txns 8 and successful txn count in response should Match - Scenario: Bulk Transfer with ClosedLoop and GSMA + Scenario: Bulk Transfer with ClosedLoop and GSMA [WIP] #payer 1 creation Given I have Fineract-Platform-TenantId as "payerfsp2" When I create and setup a "payer" with id "1" and account balance of 100 for combine test cases diff --git a/src/test/java/resources/identityMapperTest.feature b/src/test/java/resources/identityMapperTest.feature index e6b8b498d..3e47f1cd4 100644 --- a/src/test/java/resources/identityMapperTest.feature +++ b/src/test/java/resources/identityMapperTest.feature @@ -238,7 +238,7 @@ Feature: Identity Account Mapper Api Test Then I will call the fetch beneficiary API with expected status of 200 And I will assert the fields from fetch beneficiary response @gov @ext - Scenario: Batch Account Lookup Integration Test + Scenario: Batch Account Lookup Integration Test [WIP] Given I create an IdentityMapperDTO for Register Beneficiary from csv file When I call the register beneficiary API with expected status of 202 and stub "/registerBeneficiaryApiTest" # And I will sleep for 3000 millisecond