FINERACT-2454: Migrate ClientLoanAccountLockIntegrationTest from RestAssured to feign client#5670
Conversation
4d41ada to
9b56efc
Compare
|
Please run: Before any PR or changes, please always run these two commands and make sure there is green build! |
2f9f7c3 to
0e6b7d0
Compare
Sure Adam I will be following for this and subsequent PR's. Thank you for the guidance |
0e6b7d0 to
1872f06
Compare
|
9c72737 to
afe701e
Compare
|
Hi @adamsaghy Regarding my CI check failure CI OOMs in :fineract-client-feign:buildJavaSdk when it runs concurrently with :fineract-client:buildJavaSdk; I added a SharedBuildService limiter (maxParallelUsages=1) applied to all OpenAPI GenerateTasks so codegen can’t run concurrently. Is this fine ? If you say yes i can push the build.gradle with updated changes . Or can you say any alternatives. Since in my local it is green build |
a692c54 to
3dbe2bb
Compare
|
Hi @adamsaghy This PR is ready to merge. |
|
@Dpk376 Please rebase. |
3dbe2bb to
0f7ddb9
Compare
Hi @adamsaghy Rebased on latest develop and resolved the conflicts. Ran all quality checks (spotless, spotbugs, checkstyle) and full build locally - all passing. Note: CI may occasionally fail with OOM during concurrent Thanks! |
|
@Dpk376 Please rebase this PR with latest |
…Assured to fineract-client-feign - Migrates ClientLoanAccountLockIntegrationTest to use fineract-client-feign - Replaces RestAssured based API calls with Feign client - Fixes getObligeeData handling for JSON array responses - Updates OpenAPI schema for obligeedetails endpoint - Applies related integration test adjustments
0f7ddb9 to
e2d4a22
Compare
|
|
Hi @adamsaghy This is a memory issue that occurs when the Java Virtual Machine (JVM) runs out of allocated heap memory while building the Java SDK. That's why 1 check failed rerunning will resolve this |
|
Hi @adamsaghy This is ready for merging . Let me know if anything needed from my side |
Description
Relates to FINERACT-2454
Migrates
ClientLoanAccountLockIntegrationTestfrom RestAssured to the type-safe feign client.Changes
RequestSpecification/ResponseSpecificationboilerplate withextends BaseLoanIntegrationTest@BeforeEachsetup,clientHelper,loanTransactionHelper,loanAccountLockHelperinstance fieldsClientHelper.createClient(requestSpec, responseSpec)→ClientHelper.addClientAsPerson()LoanProductTestBuilder+getLoanProductId()→createLoanProduct(createOnePeriod30DaysLongNoInterestPeriodicAccrualProduct())LoanApplicationTestBuilder+getLoanId()→applyLoan(applyLoanRequest(...))approveLoan(String, Integer)→approveLoan(Long, PostLoansLoanIdRequest)disburseLoanWithNetDisbursalAmount()→disburseLoan(Long, String, Double)LoanStatusCheckerHashMap assertions →verifyLoanStatus(loanId, LoanStatus.*)LoanAccountLockHelper.placeSoftLockOnLoanAccount()(RestAssured) →FineractClientHelper.getFineractClient().legacy.placeLockOnLoanAccount()(feign)clientHelper.retrieveLockedAccounts()instance call →FineractClientHelper.getFineractClient().loanAccountLockApi.retrieveLockedAccounts()(feign)Result
134 lines → 65 lines. Zero RestAssured imports remaining.
No behavioral changes — the test still verifies that a soft-locked loan account appears in the locked accounts list.