refactor/added the checkShortString to createBank endpoint-fixed test

This commit is contained in:
hongwei 2023-10-19 13:37:47 +02:00
parent 66ff69184c
commit a795b511dd
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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)