Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 8, 2020
1 parent 51234fa commit d78b29a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ import org.thp.thehive.services.{AlertSrv, OrganisationSrv}
class MispImportSrvTest(implicit ec: ExecutionContext) extends PlaySpecification with TestAppBuilder {
implicit val authContext: AuthContext =
DummyUserSrv(userId = "[email protected]", organisation = "cert", permissions = Permissions.all).authContext
override val appConfigure: AppBuilder = super
.appConfigure
.bindToProvider[TheHiveMispClient, TestMispClientProvider]
override def appConfigure: AppBuilder =
super
.appConfigure
.bindToProvider[TheHiveMispClient, TestMispClientProvider]

"MISP client" should {
"get current user name" in testApp { app =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ class UserCtrlTest extends PlaySpecification with TestAppBuilder {
Permissions.managePage,
Permissions.manageObservable,
Permissions.manageAlert,
Permissions.manageAction
Permissions.manageAction,
Permissions.manageConfig
),
organisation = "cert"
)
Expand Down

0 comments on commit d78b29a

Please sign in to comment.