test/Fix failed v3.1.0 tests 2

This commit is contained in:
Marko Milić 2025-12-04 14:24:30 +01:00
parent 9c16f74fe8
commit 9861d69df9

View File

@ -73,10 +73,12 @@ class ConsentTest extends V310ServerSetup {
lazy val bankAccount = randomPrivateAccount(bankId)
lazy val entitlements = List(PostConsentEntitlementJsonV310("", CanGetAnyUser.toString()))
lazy val views = List(PostConsentViewJsonV310(bankId, bankAccount.id, Constant.SYSTEM_OWNER_VIEW_ID))
lazy val postConsentEmailJsonV310 = SwaggerDefinitionsJSON.postConsentEmailJsonV310
.copy(entitlements=entitlements)
def postConsentEmailJsonV310 = SwaggerDefinitionsJSON.postConsentEmailJsonV310
.copy(consumer_id=Some(testConsumer.consumerId.get))
.copy(valid_from = Some(new Date()))
.copy(views=views)
.copy(entitlements=entitlements)
def postConsentImplicitJsonV310 = SwaggerDefinitionsJSON.postConsentImplicitJsonV310
.copy(consumer_id=Some(testConsumer.consumerId.get))
.copy(entitlements=entitlements)