FINERACT-2455: Updated e2e tests for rework WC loan schedule model to use recurrent calculations - #6415
Conversation
galovics
left a comment
There was a problem hiding this comment.
Confirmed test-only, and I independently re-derived the schedule math against the actual production calculator for every scenario rather than trusting the regenerated numbers - all of it reproduces exactly, including the rate-segment scenarios, so there's no sign of the non-monotonic-balance issue that was found on #6339.
One thing that's actually failing CI though: scenario C102416 ends with And The retrieved amortization schedule has no negative monetary amounts, but that scenario never runs Admin retrieves the projected amortization schedule - it only uses the has N periods step, which doesn't populate the context the assertion step reads from. This is the only scenario in the whole suite that asserts on "the retrieved schedule" without retrieving it first, and it's exactly what's failing shard 10 with a null-response error. Easy fix - either add the retrieve step before that line, or drop it.
Non-blocking: C102414 mostly duplicates the existing C98194 scenario (same product/amounts, same first few rows) with less coverage of the interesting tail - might be worth folding one into the other rather than keeping both.
Recommendation: CHANGES_REQUESTED
… use recurrent calculations
c4b09a2 to
df84162
Compare
@galovics Thank you for the feedback C102416 - agreed, fixed. C102414 vs C98194 - I would keep both, see my explanation below. Both tests share the product and rows 1-3 but exercise different things:
|
|
LGTM |
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.