integration-0.1.0
Safe HaskellNone
LanguageGHC2021

Test.Teams

Synopsis

Documentation

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.

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.