-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bec348d
commit 6a256dc
Showing
10 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,7 +152,7 @@ class AccountControllerSpec(implicit ee: ExecutionEnv) | |
|
||
"send an invalid DGCCRF invitation" in { | ||
val request = FakeRequest(POST, routes.AccountController.sendAgentInvitation(UserRole.DGCCRF).toString) | ||
.withJsonBody(Json.obj("email" -> "[email protected]")) | ||
.withJsonBody(Json.obj("email" -> "[email protected]", "authProvider" -> AuthProvider.SignalConso )) | ||
.withAuthCookie(identity.email, components.cookieAuthenticator) | ||
|
||
val result = route(app, request).get | ||
|
@@ -162,7 +162,7 @@ class AccountControllerSpec(implicit ee: ExecutionEnv) | |
"send a DGCCRF invitation" in { | ||
val request = FakeRequest(POST, routes.AccountController.sendAgentInvitation(UserRole.DGCCRF).toString) | ||
.withAuthCookie(identity.email, components.cookieAuthenticator) | ||
.withJsonBody(Json.obj("email" -> "[email protected]")) | ||
.withJsonBody(Json.obj("email" -> "[email protected]", "authProvider" -> AuthProvider.SignalConso )) | ||
|
||
val result = route(app, request).get | ||
Helpers.status(result) must beEqualTo(200) | ||
|
@@ -177,6 +177,7 @@ class AccountControllerSpec(implicit ee: ExecutionEnv) | |
Helpers.status(result) must beEqualTo(403) | ||
} | ||
|
||
|
||
"send a DGAL invitation" in { | ||
val request = FakeRequest(POST, routes.AccountController.sendAgentInvitation(UserRole.DGAL).toString) | ||
.withAuthCookie(identity.email, components.cookieAuthenticator) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters