Implement alternate login for testing
Categories
(developer.mozilla.org Graveyard :: User management, task, P5)
Tracking
(Not tracked)
People
(Reporter: jwhitlock, Unassigned)
Details
(Keywords: in-triage, Whiteboard: [specification][type:feature])
Reporter | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Current status:
- Persona was disabled in 2016, GitHub is the only way for users to signup and login to the site. There was not a significant change in the rate of signups, positive or negative, to justify spending the time to expand the public login options.
- A sample database is used for development, which includes test accounts with known permissions and passwords. This is useful for automated testing, but those tests are rarely used.
- For staging and production, the automated tests are:
- Django functional and unit tests
- "headless" tests using the requests library to make HTTP requests without login
- Selenium tests in Firefox and Chrome without login
There is still not a great way to test either the login process, or tests that require logins, using browsers or automation.
One idea I'm considering is a "test accounts view", that allows logging in as a test user by following a URL. This could be enabled in development and staging, and possibly protected with a secret shared between the testing environment and production, such as a per-deployment environment variable. It would be disallowed in production. This would allow test suites to take action as a logged in user, with a similar security profile to passwords, without requiring a username / password hole in deployed environments.
Lack of automatic testing of logged-in functionality has not been a huge issue. A human tends to notice those issues, or they raise exceptions and are noticed by regular alerting. It would be good to take note when a regression would have been detected by an automated test with login functionality.
Updated•6 years ago
|
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Description
•