mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:16:53 +00:00
refactor/added the checkShortString to createBank endpoint-fixed test
This commit is contained in:
parent
66ff69184c
commit
a795b511dd
@ -1020,7 +1020,7 @@ object SwaggerDefinitionsJSON {
|
||||
)
|
||||
|
||||
val postBankJson500 = PostBankJson500(
|
||||
id = Some(idExample.value),
|
||||
id = Some(bankIdExample.value),
|
||||
bank_code = bankCodeExample.value,
|
||||
full_name = Some(fullNameExample.value),
|
||||
logo = Some(logoExample.value),
|
||||
|
||||
@ -69,7 +69,7 @@ class BankTests extends V500ServerSetupAsync with DefaultUsers {
|
||||
And("We make the request")
|
||||
val firstFullName = "A new full name"
|
||||
val secondFullName = "A second new full name"
|
||||
val postBank = postBankJson500.copy(id = Some(APIUtil.generateUUID()))
|
||||
val postBank = postBankJson500.copy(id = Some(APIUtil.generateUUID().substring(25)))
|
||||
val bankId = postBank.id.getOrElse("some_bank_id")
|
||||
val request = (v5_0_0_Request / "banks").POST <@ (user1)
|
||||
val requestPut = (v5_0_0_Request / "banks").PUT <@ (user1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user