You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Michael Vorburger (Jira)" <ji...@apache.org> on 2020/01/12 12:53:00 UTC

[jira] [Commented] (FINERACT-820) LoanReschedulingWithinCenterTest is flaky and always fails on Sundays

    [ https://issues.apache.org/jira/browse/FINERACT-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013746#comment-17013746 ] 

Michael Vorburger commented on FINERACT-820:
--------------------------------------------

This just happened again e.g. on [https://github.com/apache/fineract/pull/685] ... we really should fix this ASAP.

This issue makes contributing on Sundays a frustrating experience.

> LoanReschedulingWithinCenterTest is flaky and always fails on Sundays
> ---------------------------------------------------------------------
>
>                 Key: FINERACT-820
>                 URL: https://issues.apache.org/jira/browse/FINERACT-820
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: Michael Vorburger
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> https://github.com/apache/fineract/pull/678 for FINERACT-726 just failed due to:
> {noformat}> Task :integrationTest                                                                                                                                                                     
>                                                                                                                                                                                             
> 344 tests completed, 2 failed, 14 skipped{noformat}
> due to:
> 1. org.apache.fineract.integrationtests.LoanReschedulingWithinCenterTest
> {noformat}        at org.apache.fineract.integrationtests.common.Utils.performServerPost(Utils.java:156)
>         at org.apache.fineract.integrationtests.common.CalendarHelper.createMeetingForGroup(CalendarHelper.java:101)
>         at org.apache.fineract.integrationtests.LoanReschedulingWithinCenterTest.createCalendarMeeting(LoanReschedulingWithinCenterTest.java:181)
>         at org.apache.fineract.integrationtests.LoanReschedulingWithinCenterTest.testCenterReschedulingLoansWithInterestRecalculationEnabled(LoanReschedulingWithinCenterTest.java:97)
> -----------------------------------LOGIN-----------------------------------------
> ------------------------ RETRIEVING ALL GLOBAL CONFIGURATIONS -------------------------
> map : {dateFormat=dd MMMM yyyy, name=Office_PLBT, locale=en, openingDate=01 July 2007, parentId=1}
> map : {firstname=michael_U2MM2, officeId=1, dateFormat=dd MMMM yyyy, joiningDate=20 September 2011, isLoanOfficer=true, locale=en, lastname=Doe_URN3}
> ------------------------CREATING CENTER-------------------------
> ------------------------ RETRIEVING CENTER AT 180-------------------------
> ---------------------------------CREATING A MEETING CALENDAR FOR THE GROUP------------------------------
> /fineract-provider/api/v1/centers/180/calendars?tenantIdentifier=default
> map : {repeatsOnDay=0, dateFormat=dd MMMM yyyy, repeating=true, interval=2, typeId=1, locale=en, title=groups_CollectionMeetingF3FP, startDate=05 January 2020, frequency=2}
> HTTP/1.1 400 Bad Request
> Server: Apache-Coyote/1.1
> X-Notification-Refresh: true
> Access-Control-Allow-Origin: *
> Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
> Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> Pragma: no-cache
> Expires: 0
> Strict-Transport-Security: max-age=31536000 ; includeSubDomains
> X-XSS-Protection: 1; mode=block
> X-Frame-Options: DENY
> X-Content-Type-Options: nosniff
> Content-Type: application/json
> Transfer-Encoding: chunked
> Date: Sun, 05 Jan 2020 17:57:32 GMT
> Connection: close
> {
>     &quot;developerMessage&quot;: &quot;The request was invalid. This typically will happen due to validation errors which are provided.&quot;,
>     &quot;httpStatusCode&quot;: &quot;400&quot;,
>     &quot;defaultUserMessage&quot;: &quot;Validation errors exist.&quot;,
>     &quot;userMessageGlobalisationCode&quot;: &quot;validation.msg.validation.errors.exist&quot;,
>     &quot;errors&quot;: [
>         {
>             &quot;developerMessage&quot;: &quot;The parameter repeatsOnDay must be between 1 and 7.&quot;,
>             &quot;defaultUserMessage&quot;: &quot;The parameter repeatsOnDay must be between 1 and 7.&quot;,
>             &quot;userMessageGlobalisationCode&quot;: &quot;validation.msg.calendar.repeatsOnDay.is.not.within.expected.range&quot;,
>             &quot;parameterName&quot;: &quot;repeatsOnDay&quot;,
>             &quot;value&quot;: null,
>             &quot;args&quot;: [
>                 {
>                     &quot;value&quot;: 0
>                 },
>                 {
>                     &quot;value&quot;: 1
>                 },
>                 {
>                     &quot;value&quot;: 7
>                 }
>             ]
>         }
>     ]
> }{noformat}
> 2. testCenterReschedulingMultiTrancheLoansWithInterestRecalculationEnabled
> If _The parameter repeatsOnDay must be between 1 and 7._ then probably doing {{repeatsOnDay = today.get(Calendar.DAY_OF_WEEK) - 1;}} in https://github.com/apache/fineract/blob/develop/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/LoanReschedulingWithinCenterTest.java isn't great?
> {noformat}{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)