Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Feature: Working Capital Breach Disable
And Admin runs inline COB job for Working Capital Loan by loanId
And Admin initiate a Working Capital loan breach disable with startDate "15 January 2026"
Then Initiating a Working Capital loan breach disable with startDate "15 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: breach.already.disabled |
| httpCode | message |
| 400 | Breach evaluation is already disabled for this Working Capital loan. It must be enabled before disabling again. |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand All @@ -73,8 +73,8 @@ Feature: Working Capital Breach Disable
And Admin sets the business date to "15 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach enable with startDate "15 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: no.active.breach.disable.to.enable |
| httpCode | message |
| 400 | There is no active breach disable to enable for this Working Capital loan. |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand All @@ -92,14 +92,14 @@ Feature: Working Capital Breach Disable
And Admin sets the business date to "15 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach disable with startDate "10 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.be.current.business.date |
| httpCode | message |
| 400 | Start date of a disable or enable action must be the current business date |
And Initiating a Working Capital loan breach enable with startDate "10 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.be.current.business.date |
| httpCode | message |
| 400 | Start date of a disable or enable action must be the current business date |
And Initiating a Working Capital loan breach disable with startDate "15 January 2026" and endDate "20 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.not.be.provided.for.disable.or.enable |
| httpCode | message |
| 400 | End date must not be provided for a disable or enable action |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand All @@ -118,11 +118,11 @@ Feature: Working Capital Breach Disable
And Admin runs inline COB job for Working Capital Loan by loanId
And Admin initiate a Working Capital loan breach disable with startDate "15 January 2026"
Then Initiating a Working Capital loan breach pause with startDate "16 January 2026" and endDate "20 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: breach.is.disabled |
| httpCode | message |
| 400 | Breach pause, resume, reschedule and reset actions are not allowed while breach evaluation is disabled. |
And Initiating a Working Capital loan breach reschedule with minimumPayment "50" "FLAT" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: breach.is.disabled |
| httpCode | message |
| 400 | Breach pause, resume, reschedule and reset actions are not allowed while breach evaluation is disabled. |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand Down Expand Up @@ -163,8 +163,8 @@ Feature: Working Capital Breach Disable
And Admin runs inline COB job for Working Capital Loan by loanId
And Admin initiate a Working Capital loan breach disable with startDate "15 January 2026"
Then Admin fails to create WC breach reset action with the following data:
| httpCode | errorMessage |
| 400 | Failed data validation due to: breach.is.disabled |
| httpCode | errorMessage |
| 400 | Breach pause, resume, reschedule and reset actions are not allowed while breach evaluation is disabled. |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand All @@ -184,8 +184,8 @@ Feature: Working Capital Breach Disable
And Admin initiate a Working Capital loan breach pause with startDate "15 January 2026" and endDate "20 January 2026"
And Admin initiate a Working Capital loan breach disable with startDate "15 January 2026"
Then Initiating a Working Capital loan breach resume with startDate "15 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: breach.is.disabled |
| httpCode | message |
| 400 | Breach pause, resume, reschedule and reset actions are not allowed while breach evaluation is disabled. |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand All @@ -208,8 +208,8 @@ Feature: Working Capital Breach Disable
| action | startDate | endDate |
| DISABLE | 2026-01-15 | |
Then Initiating a Working Capital loan breach undo reset results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: breach.is.disabled |
| httpCode | message |
| 400 | Breach pause, resume, reschedule and reset actions are not allowed while breach evaluation is disabled. |
When Admin closes the Working Capital loan with a full repayment on "15 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand Down Expand Up @@ -359,8 +359,8 @@ Feature: Working Capital Breach Disable
And Admin successfully disburse the Working Capital loan on "01 January 2026" with "9000" EUR transaction amount
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach disable with startDate "01 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: no.breach.configuration |
| httpCode | message |
| 400 | Breach actions require a breach configuration on the Working Capital loan. |
When Admin closes the Working Capital loan with a full repayment on "01 January 2026"
Then Working Capital loan status will be "CLOSED_OBLIGATIONS_MET"

Expand All @@ -374,8 +374,8 @@ Feature: Working Capital Breach Disable
| 01 January 2026 | 01 January 2026 | 9000 | 100000 | 18 | 0 |
And Admin successfully approves the working capital loan on "01 January 2026" with "9000" amount and expected disbursement date on "01 January 2026"
Then Initiating a Working Capital loan breach disable with startDate "01 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: loan.is.not.active |
| httpCode | message |
| 400 | Breach actions can be created only for active Working Capital loans. |

@TestRailId:C85479
Scenario: Verify Working Capital breach enable/disable - UC17: Breach disable can be applied and retrieved by loan external id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ Feature: Working Capital Breach Pause
And Admin runs inline COB job for Working Capital Loan by loanId
And Admin initiate a Working Capital loan breach pause with startDate "15 January 2026" and endDate "25 January 2026"
Then Initiating a Working Capital loan breach pause with startDate "20 January 2026" and endDate "30 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: overlapping.pause.periods |
| httpCode | message |
| 400 | Breach pause period cannot overlap with another pause period |
And Initiating a Working Capital loan breach pause with startDate "10 January 2026" and endDate "30 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: overlapping.pause.periods |
| httpCode | message |
| 400 | Breach pause period cannot overlap with another pause period |
And Working Capital loan breach action has the following data:
| action | startDate | endDate |
| PAUSE | 2026-01-15 | 2026-01-25 |
Expand Down Expand Up @@ -254,8 +254,8 @@ Feature: Working Capital Breach Pause
When Admin successfully disburse the Working Capital loan on "01 January 2026" with "9000" EUR transaction amount
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach pause with startDate "25 January 2026" and endDate "15 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.be.on.or.after.startDate |
| httpCode | message |
| 400 | End date of pause period must be on or after the start date |
And Initiating a Working Capital loan breach pause with startDate "25 December 2025" and endDate "05 January 2026" results an error with the following data:
| httpCode | message |
| 400 | The parameter `startDate` must be greater than or equal to the provided date: 2026-01-01 |
Expand Down Expand Up @@ -285,8 +285,8 @@ Feature: Working Capital Breach Pause
When Admin successfully disburse the Working Capital loan on "01 January 2026" with "9000" EUR transaction amount
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach pause with startDate "15 January 2026" and endDate "25 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: no.breach.configuration |
| httpCode | message |
| 400 | Breach actions require a breach configuration on the Working Capital loan. |
Then Admin closes the Working Capital loan with a full repayment on "01 January 2026"

@TestRailId:C85245
Expand Down Expand Up @@ -327,8 +327,8 @@ Feature: Working Capital Breach Pause
| 01 January 2026 | 01 January 2026 | 9000 | 100000 | 18 | 0 |
And Admin successfully approves the working capital loan on "01 January 2026" with "9000" amount and expected disbursement date on "01 January 2026"
Then Initiating a Working Capital loan breach pause with startDate "15 January 2026" and endDate "25 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: loan.is.not.active |
| httpCode | message |
| 400 | Breach actions can be created only for active Working Capital loans. |

@TestRailId:C85247
Scenario: Verify working capital loan breach pause - backdated payment resets breach flag of an already breached period
Expand Down Expand Up @@ -377,8 +377,8 @@ Feature: Working Capital Breach Pause
And Admin initiate a Working Capital loan breach pause with startDate "15 January 2026" and endDate "25 January 2026"
# start and end are inclusive, so a second pause sharing the boundary day (25 Jan) overlaps and is rejected
Then Initiating a Working Capital loan breach pause with startDate "25 January 2026" and endDate "05 February 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: overlapping.pause.periods |
| httpCode | message |
| 400 | Breach pause period cannot overlap with another pause period |
# a contiguous pause must start the day after the previous one ends, so the boundary day is not double-counted
When Admin initiate a Working Capital loan breach pause with startDate "26 January 2026" and endDate "05 February 2026"
Then Working Capital loan breach action has the following data:
Expand Down Expand Up @@ -594,8 +594,8 @@ Feature: Working Capital Breach Pause
When Admin sets the business date to "20 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach resume with startDate "20 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: resume.not.during.active.pause |
| httpCode | message |
| 400 | Resume breach action can only be created during an active pause |
Then Admin closes the Working Capital loan with a full repayment on "20 January 2026"

@TestRailId:C85253
Expand All @@ -613,8 +613,8 @@ Feature: Working Capital Breach Pause
When Admin sets the business date to "10 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach resume with startDate "11 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.be.current.business.date |
| httpCode | message |
| 400 | Start date of a resume action must be the current business date |
Then Admin closes the Working Capital loan with a full repayment on "10 January 2026"

@TestRailId:C85254
Expand All @@ -632,8 +632,8 @@ Feature: Working Capital Breach Pause
When Admin sets the business date to "10 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach action "resume" with startDate "10 January 2026" and endDate "20 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.not.be.provided.for.resume |
| httpCode | message |
| 400 | End date must not be provided for a resume action |
Then Admin closes the Working Capital loan with a full repayment on "10 January 2026"

@TestRailId:C85255
Expand All @@ -652,8 +652,8 @@ Feature: Working Capital Breach Pause
And Admin runs inline COB job for Working Capital Loan by loanId
And Admin initiate a Working Capital loan breach resume with startDate "10 January 2026"
Then Initiating a Working Capital loan breach resume with startDate "10 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: resume.not.during.active.pause |
| httpCode | message |
| 400 | Resume breach action can only be created during an active pause |
Then Admin closes the Working Capital loan with a full repayment on "10 January 2026"

@TestRailId:C85256
Expand Down Expand Up @@ -773,8 +773,8 @@ Feature: Working Capital Breach Pause
When Admin sets the business date to "10 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach resume with startDate "09 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: must.be.current.business.date |
| httpCode | message |
| 400 | Start date of a resume action must be the current business date |
Then Admin closes the Working Capital loan with a full repayment on "10 January 2026"

@TestRailId:C85260
Expand All @@ -791,8 +791,8 @@ Feature: Working Capital Breach Pause
When Admin sets the business date to "10 January 2026"
And Admin runs inline COB job for Working Capital Loan by loanId
Then Initiating a Working Capital loan breach resume with startDate "10 January 2026" results an error with the following data:
| httpCode | message |
| 400 | Failed data validation due to: resume.not.during.active.pause |
| httpCode | message |
| 400 | Resume breach action can only be created during an active pause |
Then Admin closes the Working Capital loan with a full repayment on "10 January 2026"

@TestRailId:C85261
Expand Down
Loading
Loading