mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:37:00 +00:00
test/added the firehose view to the test
This commit is contained in:
parent
68364ae464
commit
d1c9e87174
@ -182,6 +182,7 @@ class API1_2_1Test extends ServerSetupWithTestData with DefaultUsers with Privat
|
||||
.filterNot(_.id.contains(SYSTEM_OWNER_VIEW_ID))
|
||||
.filterNot(_.id.contains(SYSTEM_AUDITOR_VIEW_ID))
|
||||
.filterNot(_.id.contains(SYSTEM_ACCOUNTANT_VIEW_ID))
|
||||
.filterNot(_.id.contains(SYSTEM_FIREHOSE_VIEW_ID))
|
||||
val randomPosition = nextInt(possibleViewsPermalinksWithoutOwner.size)
|
||||
possibleViewsPermalinksWithoutOwner(randomPosition).id
|
||||
}
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
package code.setup
|
||||
|
||||
import java.util.{Calendar, Date}
|
||||
|
||||
import code.accountholders.AccountHolders
|
||||
import code.api.Constant.{SYSTEM_ACCOUNTANT_VIEW_ID, SYSTEM_AUDITOR_VIEW_ID, SYSTEM_OWNER_VIEW_ID}
|
||||
import code.api.Constant.{SYSTEM_ACCOUNTANT_VIEW_ID, SYSTEM_AUDITOR_VIEW_ID, SYSTEM_FIREHOSE_VIEW_ID, SYSTEM_OWNER_VIEW_ID}
|
||||
import code.api.util.{APIUtil, OBPLimit, OBPOffset}
|
||||
import code.bankconnectors.{Connector, LocalMappedConnector}
|
||||
import code.model._
|
||||
@ -72,11 +71,13 @@ trait TestConnectorSetup {
|
||||
val systemOwnerView = getOrCreateSystemView(SYSTEM_OWNER_VIEW_ID)
|
||||
val systemAuditorView = getOrCreateSystemView(SYSTEM_AUDITOR_VIEW_ID)
|
||||
val systemAccountantView = getOrCreateSystemView(SYSTEM_ACCOUNTANT_VIEW_ID)
|
||||
val systemFirehoseView = getOrCreateSystemView(SYSTEM_FIREHOSE_VIEW_ID)
|
||||
|
||||
accounts.foreach(account => {
|
||||
Views.views.vend.grantAccessToSystemView(account.bankId, account.accountId, systemOwnerView, user)
|
||||
Views.views.vend.grantAccessToSystemView(account.bankId, account.accountId, systemAuditorView, user)
|
||||
Views.views.vend.grantAccessToSystemView(account.bankId, account.accountId, systemAccountantView, user)
|
||||
Views.views.vend.grantAccessToSystemView(account.bankId, account.accountId, systemFirehoseView, user)
|
||||
|
||||
val customPublicView = createPublicView(account.bankId, account.accountId)
|
||||
Views.views.vend.grantAccessToCustomView(customPublicView.uid, user)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user