mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:16:53 +00:00
fixed the create counterpart test
This commit is contained in:
parent
ac30b5b6e8
commit
61ba61fcd1
@ -362,7 +362,7 @@ trait APIMethods210 {
|
||||
// Following 7 lines: just transfer the details body, add Bank_Id and Account_Id in the Detail part.
|
||||
toBankId <- Full(BankId(toCounterparty.otherBankId ))
|
||||
toAccountId <- Full(AccountId(toCounterparty.otherAccountId))
|
||||
toAccountProvider <- Full(AccountId(toCounterparty.otherAccountProvider))
|
||||
toAccountProvider <- Full(toCounterparty.otherAccountProvider)
|
||||
// Use toAccountProvider to determine how we validate the toBank and toAccount.
|
||||
// i.e. Only validate toBankId and toAccountId if the toAccountProvider is OBP
|
||||
// i.e. if toAccountProvider is OBP we can expect the account to exist locally.
|
||||
|
||||
@ -35,8 +35,9 @@ trait LocalMappedConnectorTestSetup extends TestConnectorSetupWithStandardPermis
|
||||
mOtherBankId(bankId).
|
||||
mOtherAccountId(accountId).
|
||||
mIsBeneficiary(isBeneficiary).
|
||||
mOtherAccountRoutingScheme("IBAN").
|
||||
saveMe
|
||||
mOtherAccountRoutingScheme("IBAN"). //it is for test, so set it the default value
|
||||
mOtherAccountProvider("OBP"). //it is for test, so set it the default value
|
||||
saveMe
|
||||
}
|
||||
|
||||
// TODO: Should return an option or box so can test if the insert succeeded
|
||||
|
||||
Loading…
Reference in New Issue
Block a user