| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Test.Spar.ListUsers
Description
Tests for listing SCIM users (GET scimv2/Users) without a filter, using
startIndex and count. Listing is backed by an offset-paginated query in
brig which is only available when the user store is Postgres.
Synopsis
- getUserStore :: HasCallStack => App String
- createScimUserInTeam :: (HasCallStack, MakesValue domain) => domain -> String -> String -> Bool -> App String
- setupTeamWithScimUsers :: (HasCallStack, MakesValue domain) => domain -> Int -> App (String, String, Value, [String])
- assertPage :: (HasCallStack, MakesValue domain) => domain -> Maybe Int -> Maybe Int -> Int -> Int -> Int -> String -> App [String]
- testSparScimListUsersPaginated :: HasCallStack => App ()
- testSparScimListUsersUnsupportedStore :: HasCallStack => App ()
Documentation
getUserStore :: HasCallStack => App String Source #
The storage location of users, as configured for brig.
createScimUserInTeam :: (HasCallStack, MakesValue domain) => domain -> String -> String -> Bool -> App String Source #
Create a SCIM user. If acceptInvitation is set, the invitation is accepted
immediately, otherwise brig would garbage collect the user because of the
very short team invitation timeout in the test environment.
setupTeamWithScimUsers :: (HasCallStack, MakesValue domain) => domain -> Int -> App (String, String, Value, [String]) Source #
Create a team with a SCIM token and n active SCIM users. Returns the
token, the team ID, the owner and the SCIM IDs of the created users.
Arguments
| :: (HasCallStack, MakesValue domain) | |
| => domain | |
| -> Maybe Int | |
| -> Maybe Int | |
| -> Int | expected startIndex |
| -> Int | expected totalResults |
| -> Int | expected itemsPerPage |
| -> String | |
| -> App [String] |
Assert on the page structure and return the SCIM IDs of the resources.
testSparScimListUsersPaginated :: HasCallStack => App () Source #