| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Test.Teams
Synopsis
- testInvitePersonalUserToTeam :: HasCallStack => App ()
- testInvitePersonalUserToLargeTeam :: HasCallStack => App ()
- testInvitePersonalUserToTeamMultipleInvitations :: HasCallStack => App ()
- testInvitePersonalUserToTeamEmailDomainForAnotherBackend :: HasCallStack => App ()
- testAcceptInvitePersonalUserToTeamEmailDomainForAnotherBackend :: HasCallStack => App ()
- testInvitePersonalUserToTeamLegacy :: HasCallStack => App ()
- testInvitationTypesAreDistinct :: HasCallStack => Domain -> App ()
- testTeamUserCannotBeInvited :: HasCallStack => App ()
- testUpgradePersonalToTeam :: HasCallStack => App ()
- testUpgradePersonalToTeamAlreadyInATeam :: HasCallStack => App ()
- testUpgradePersonalToTeamEmailDomainForAnotherBackend :: HasCallStack => App ()
- testTeamMemberCsvExport :: HasCallStack => App ()
- testUpgradeGuestToTeamShouldFail :: HasCallStack => App ()
- testDeleteTeamUserRatelimitingIsPropagated :: HasCallStack => App ()
- testSelectTeamMembersByIds :: HasCallStack => App ()
- testListUsersEmailVisibility :: HasCallStack => App ()
- testListUsersContactStatus :: HasCallStack => App ()
- testProfileEndpointsNoContactStatus :: HasCallStack => App ()
- configureMlsForTeam :: (HasCallStack, MakesValue owner) => owner -> String -> App ()
- assertContactStatus :: HasCallStack => [Value] -> Value -> String -> App ()
- findProfile :: HasCallStack => [Value] -> Value -> App (Maybe Value)
- keyPackageCount :: HasCallStack => ClientIdentity -> App Int
- testListUsersContactStatusScenarios :: HasCallStack => Domain -> App ()
- testListUsersContactStatusRemoteDown :: HasCallStack => App ()
- testListUsersContactStatusOldFedRemote :: HasCallStack => FedDomain 1 -> App ()
- testGetTeamsInvitationInfo :: HasCallStack => App ()
- testResendVerificationEmailPendingEmail :: HasCallStack => App ()
- testResendVerificationEmailNoPendingEmail :: HasCallStack => App ()
- testResendVerificationEmailNonAdmin :: HasCallStack => App ()
- testResendVerificationEmailWrongTeamCaller :: HasCallStack => App ()
- testResendVerificationEmailTargetNotInTeam :: HasCallStack => App ()
- testResendVerificationEmailUserNotFound :: HasCallStack => App ()
- testResendVerificationEmailScimUser :: HasCallStack => App ()
- testResendVerificationEmailScimUserWithSamlEmail :: HasCallStack => App ()
Documentation
testInvitePersonalUserToTeam :: HasCallStack => App () Source #
testInvitationTypesAreDistinct :: HasCallStack => Domain -> App () Source #
testTeamUserCannotBeInvited :: HasCallStack => App () Source #
testUpgradePersonalToTeam :: HasCallStack => App () Source #
testTeamMemberCsvExport :: HasCallStack => App () Source #
testSelectTeamMembersByIds :: HasCallStack => App () Source #
testListUsersEmailVisibility :: HasCallStack => App () Source #
testListUsersContactStatus :: HasCallStack => App () Source #
testProfileEndpointsNoContactStatus :: HasCallStack => App () Source #
Only list-users with include-contact-status=true returns
contact_status fields; that endpoint is covered by its own tests. Other
(non-deprecated) endpoints returning user profiles must never set it.
Why do we need this test? Calculating the contact_status is quite
expensive and shouldn't be done accidentally. Sharing response types might
make this easy, though.
configureMlsForTeam :: (HasCallStack, MakesValue owner) => owner -> String -> App () Source #
assertContactStatus :: HasCallStack => [Value] -> Value -> String -> App () Source #
findProfile :: HasCallStack => [Value] -> Value -> App (Maybe Value) Source #
keyPackageCount :: HasCallStack => ClientIdentity -> App Int Source #
testListUsersContactStatusScenarios :: HasCallStack => Domain -> App () Source #
Pending connections' contact_status is supported for local and remote
targets (federated get-users-contact-status).
The requester lives on OwnDomain; the test runs once per Domain
constructor (OwnDomain or OtherDomain), with all targets on
targetDomain. OtherDomain is a separate backend, so its users are remote
and their status can only come from a successful federation call.
testListUsersContactStatusRemoteDown :: HasCallStack => App () Source #
Remote backend is down: list-users still returns 200 and local users keep their contact_status; the unreachable remote user is missing from the result set.
testListUsersContactStatusOldFedRemote :: HasCallStack => FedDomain 1 -> App () Source #
Remote backend without the contact-status endpoint (old federation version): 200, profile returned, contact_status absent. Needs ENABLE_FEDERATION_V1=1.
testGetTeamsInvitationInfo :: HasCallStack => App () Source #