This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1142 from 18F/js-fix-invite-new-user
Js fix invite flow for new user
- Loading branch information
Showing
2 changed files
with
4 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,12 +89,6 @@ var inviteUsersTest = []BasicProxyTest{ | |
ResponseCode: http.StatusOK, | ||
Response: "{\"resources\": [{\"active\": true, \"verified\": false, \"id\": \"user-guid\", \"externalId\": \"[email protected]\" }]}", | ||
}, | ||
{ | ||
RequestMethod: "GET", | ||
ExpectedPath: "/Users/user-guid", | ||
ResponseCode: http.StatusOK, | ||
Response: "{\"active\": true, \"verified\": false, \"id\": \"user-guid\", \"externalId\": \"[email protected]\" }", | ||
}, | ||
{ | ||
RequestMethod: "POST", | ||
ExpectedPath: "/v2/users", | ||
|
@@ -128,12 +122,6 @@ var inviteUsersTest = []BasicProxyTest{ | |
ResponseCode: http.StatusOK, | ||
Response: "{\"resources\": [{\"active\": true, \"verified\": false, \"id\": \"user-guid\", \"externalId\": \"[email protected]\" }]}", | ||
}, | ||
{ | ||
RequestMethod: "GET", | ||
ExpectedPath: "/Users/user-guid", | ||
ResponseCode: http.StatusOK, | ||
Response: "{\"active\": true, \"verified\": false, \"id\": \"user-guid\", \"externalId\": \"[email protected]\" }", | ||
}, | ||
{ | ||
RequestMethod: "POST", | ||
ExpectedPath: "/v2/users", | ||
|
@@ -144,7 +132,7 @@ var inviteUsersTest = []BasicProxyTest{ | |
{ | ||
BasicSecureTest: BasicSecureTest{ | ||
BasicConsoleUnitTest: BasicConsoleUnitTest{ | ||
TestName: "UAA Invite User with e-mail in body", | ||
TestName: "UAA Invite User with e-mail in body (new user)", | ||
SessionData: ValidTokenData, | ||
EnvVars: GetMockCompleteEnvVars(), | ||
}, | ||
|
@@ -165,13 +153,7 @@ var inviteUsersTest = []BasicProxyTest{ | |
RequestMethod: "GET", | ||
ExpectedPath: "/Users?filter=email+eq+%22test%40example.com%22", | ||
ResponseCode: http.StatusOK, | ||
Response: "{\"resources\": [{\"active\": true, \"verified\": false, \"id\": \"user-guid\", \"externalId\": \"[email protected]\" }]}", | ||
}, | ||
{ | ||
RequestMethod: "GET", | ||
ExpectedPath: "/Users/user-guid", | ||
ResponseCode: http.StatusOK, | ||
Response: "{\"active\": true, \"verified\": false, \"id\": \"user-guid\", \"externalId\": \"[email protected]\" }", | ||
Response: "{\"resources\": []}", | ||
}, | ||
{ | ||
RequestMethod: "POST", | ||
|