adamsaghy commented on PR #5675:
URL: https://github.com/apache/fineract/pull/5675#issuecomment-4135898085
```
org.apache.fineract.integrationtests.LoanProductShortNameValidationTest
Test createLoanProductsWithSameShortName() FAILED
org.apache.fineract.client.util.CallFailedRuntimeException: HTTP failed:
Request{method=POST,
url=https://localhost:8443/fineract-provider/api/v1/loanproducts, tags={class
retrofit2.Invocation=org.apache.fineract.client.services.LoanProductsApi.createLoanProduct()
[class PostLoanProductsRequest {
accountMovesOutOfNPAOnlyOnArrearsCompletion: null
accountingRule: null
allowApprovedDisbursedAmountsOverApplied: null
allowAttributeOverrides: null
allowCompoundingOnEod: null
allowFullTermForTranche: null
allowPartialPeriodInterestCalculation: null
allowVariableInstallments: null
amortizationType: 1
buyDownExpenseAccountId: null
buyDownFeeCalculationType: null
buyDownFeeIncomeType: null
buyDownFeeStrategy: null
buydownfeeClassificationToIncomeAccountMappings: null
canDefineInstallmentAmount: null
canUseForTopup: null
capitalizedIncomeCalculationType: null
capitalizedIncomeClassificationToIncomeAccountMappings: null
capitalizedIncomeStrategy: null
capitalizedIncomeType: null
chargeOffBehaviour: null
chargeOffExpenseAccountId: null
chargeOffFraudExpenseAccountId: null
receivablePenaltyAccountId: null
repaymentEvery: 1
repaymentFrequencyType: 2
repaymentStartDateType: null
rescheduleStrategyMethod: null
shortName: 6IK4
startDate: null
supportedInterestRefundTypes: null
transactionProcessingStrategyCode: mifos-standard-strategy
transfersInSuspenseAccountId: null
useBorrowerCycle: null
writeOffAccountId: null
writeOffReasonsToExpenseMappings: null
}]}}; Response{protocol=http/1.1, code=400, message=,
url=https://localhost:8443/fineract-provider/api/v1/loanproducts}; errorBody:
{"developerMessage":"The request was invalid. This typically will happen due to
validation errors which are
provided.","httpStatusCode":"400","defaultUserMessage":"Validation errors
exist.","userMessageGlobalisationCode":"validation.msg.validation.errors.exist","errors":[{"defaultUserMessage":"The
parameter `interestCalculationPeriodType` is
mandatory.","parameterName":"interestCalculationPeriodType","developerMessage":"The
parameter `interestCalculationPeriodType` is
mandatory.","userMessageGlobalisationCode":"validation.msg.loanproduct.interestCalculationPeriodType.cannot.be.blank","args":[{}]},{"defaultUserMessage":"The
parameter `daysInYearType` is
mandatory.","parameterName":"daysInYearType","developerMessage":"The parameter
`daysInYearType` is
mandatory.","userMessageGlobalisationCode":"validation.msg.loanproduct.daysInYearType.cannot.be.bla
nk","args":[{}]},{"defaultUserMessage":"The parameter `daysInYearType` must be
one of [ 1, 360, 364, 365 ]
.","parameterName":"daysInYearType","developerMessage":"The parameter
`daysInYearType` must be one of [ 1, 360, 364, 365 ]
.","userMessageGlobalisationCode":"validation.msg.loanproduct.daysInYearType.is.not.one.of.expected.enumerations","args":[{},{"value":[1,360,364,365]}]},{"defaultUserMessage":"The
parameter `daysInMonthType` is
mandatory.","parameterName":"daysInMonthType","developerMessage":"The parameter
`daysInMonthType` is
mandatory.","userMessageGlobalisationCode":"validation.msg.loanproduct.daysInMonthType.cannot.be.blank","args":[{}]},{"defaultUserMessage":"The
parameter `daysInMonthType` must be one of [ 1, 30 ]
.","parameterName":"daysInMonthType","developerMessage":"The parameter
`daysInMonthType` must be one of [ 1, 30 ]
.","userMessageGlobalisationCode":"validation.msg.loanproduct.daysInMonthType.is.not.one.of.expected.enumerations","args":[{},{"value":[1,30]}]}
,{"defaultUserMessage":"The parameter `isInterestRecalculationEnabled` is
mandatory.","parameterName":"isInterestRecalculationEnabled","developerMessage":"The
parameter `isInterestRecalculationEnabled` is
mandatory.","userMessageGlobalisationCode":"validation.msg.loanproduct.isInterestRecalculationEnabled.cannot.be.blank","args":[{}]},{"defaultUserMessage":"The
parameter `isInterestRecalculationEnabled` must be one of [ true, false ]
.","parameterName":"isInterestRecalculationEnabled","developerMessage":"The
parameter `isInterestRecalculationEnabled` must be one of [ true, false ]
.","userMessageGlobalisationCode":"validation.msg.loanproduct.isInterestRecalculationEnabled.is.not.one.of.expected.enumerations","args":[{},{"value":[true,false]}]},{"defaultUserMessage":"The
parameter `accountingRule` is
mandatory.","parameterName":"accountingRule","developerMessage":"The parameter
`accountingRule` is
mandatory.","userMessageGlobalisationCode":"validation.msg.loanproduct.accountingRule.c
annot.be.blank","args":[{}]}]}
at
app//org.apache.fineract.integrationtests.LoanProductShortNameValidationTest.createLoanProductsWithSameShortName(LoanProductShortNameValidationTest.java:40)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]