test__auth#
Do realistic testing of user authentication.
These tests require:
AWS Cognito
A User Pool is spun up
An app/web client is registered for that user pool
Config
The
rootski-config.yml
file must be configured with the AWS Cognito values
The
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
env vars need to be set for an IAM user with admin access to the configured user pool
Functions#
Confirm a user's email address. |
|
|
|
config()
#
- tests.functional_tests.services.test__auth.config() rootski.config.config.Config [source]#
confirm_user_email()
#
delete_cognito_user()
#
jwt_id_token()
#
- tests.functional_tests.services.test__auth.jwt_id_token(config: rootski.config.config.Config) str [source]#
register_cognito_user()
#
sign_in_user()
#
test__auth_service()
#
- tests.functional_tests.services.test__auth.test__auth_service(config: rootski.config.config.Config, jwt_id_token: str)[source]#