-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test not-found and verify response body
- Loading branch information
1 parent
b1bb438
commit 6d32c35
Showing
2 changed files
with
12 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
module Test.EnterpriseLogin where | ||
|
||
import API.BrigInternal | ||
import API.Common | ||
import Testlib.Prelude | ||
|
||
testDomainRegistrationLock :: App () | ||
testDomainRegistrationLock = do | ||
let domain = "example.com" | ||
domain <- randomDomain | ||
bindResponse (getDomainRegistration OwnDomain domain) $ \resp -> do | ||
resp.status `shouldMatchInt` 404 | ||
bindResponse (domainRegistrationLock OwnDomain domain) $ \resp -> do | ||
resp.status `shouldMatchInt` 200 | ||
bindResponse (getDomainRegistration OwnDomain domain) $ \resp -> do | ||
resp.status `shouldMatchInt` 200 | ||
resp.json %. "domain" `shouldMatch` domain | ||
resp.json %. "domain_redirect" `shouldMatch` "locked" | ||
resp.json %. "team_invite" `shouldMatch` "allowed" |