Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozilla-iam/auth0-tests
Test automation for auth0 integration
https://github.com/mozilla-iam/auth0-tests
auth0 automation iam selenium testing
Last synced: about 2 months ago
JSON representation
Test automation for auth0 integration
- Host: GitHub
- URL: https://github.com/mozilla-iam/auth0-tests
- Owner: mozilla-iam
- License: mpl-2.0
- Created: 2017-03-15T08:42:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-31T00:48:42.000Z (about 2 years ago)
- Last Synced: 2023-08-06T14:10:56.725Z (over 1 year ago)
- Topics: auth0, automation, iam, selenium, testing
- Language: CSS
- Size: 101 KB
- Stars: 2
- Watchers: 13
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# auth0-tests
Automated tests for auth0 login in https://testrp.security.allizom.org/## Operational details
These tests are run in the `mozilla-iam` (320464205386) AWS account in the
`us-west-2` region via the [`auth0-tests-staging`][1] AWS CodeBuild project.## To create a local `variables.json`
If you'd like to run these tests locally (not in CodeBuild)
you can either create a `variables.json` file based on [`variables.example.json`](variables.example.json)
or run [`params2json.py`](params2json.py) to fetch the variables from AWS SSM
Parameter store and store them in a `variables.json` file locally## To run a single test
`tox -e py36 tests/test_account.py::TestAccount::test_login_passwordless`
## To run a single test on production
`PYTEST_BASE_URL=https://prod.testrp.security.allizom.org tox -e py36 tests/test_account.py::TestAccount::test_login_passwordless`
## How to generate a TOTP code from an MFA secret
Assuming you have the MFA secret in `variables.json` if you'd like to manually
generate a TOTP code from the secret you can run`oathtool -b --totp "the_secret_goes_here"`
Make sure that the command doesn't end up in your bash history, leaking the
secret[1]: https://us-west-2.console.aws.amazon.com/codesuite/codebuild/projects/auth0-tests-staging/history?region=us-west-2