You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am testing the website, it is helpful to have – or be able to quickly create – several users with different sets of permissions.
There are several barriers to my doing so quickly at the moment:
licenses.csv is the only sample CSV file I have of provider data, and it does not work if the user I'm logged in as is not a member of the correct compact.
Creating staff and provider users requires different commands (an internal script for staff, using aws cognito-idp for providers).
I have to fetch the temporary password from my email and then reset the password for every user I create, instead of just having a default password that works for all of them without requiring a reset (e.g., "password").
I have to re-negotiate (in my own brain) sets of permissions that are worth testing every sprint.
I'm not sure of the best solution here– I could imagine anything from supporting automatic test user creation on sandbox deployment (i.e., 20 accounts are automatically created with varying permissions), or making the create user scripts more flexible, and/or not requiring password resets in sandbox environments (or all / none of the above).
Perhaps a simple step in the right direction is to create a create_test_users.py script that generates staff and providers with varying permissions and creates them in the proper AWS tables/user pools. The script could pull from a static CSV file listing key user attributes, including permissions (this will help have a consistent set of usernames for testing). Optionally, it could also generate a CSV file ala the generate_mock_data.py script.
jlkravitz
changed the title
Automate (or facilitate) creation of numerous test users (staff and providers)
Automate (or facilitate) creation of staff and provider test users
Dec 19, 2024
When I am testing the website, it is helpful to have – or be able to quickly create – several users with different sets of permissions.
There are several barriers to my doing so quickly at the moment:
licenses.csv
is the only sample CSV file I have of provider data, and it does not work if the user I'm logged in as is not a member of the correct compact.aws cognito-idp
for providers).I'm not sure of the best solution here– I could imagine anything from supporting automatic test user creation on sandbox deployment (i.e., 20 accounts are automatically created with varying permissions), or making the create user scripts more flexible, and/or not requiring password resets in sandbox environments (or all / none of the above).
Perhaps a simple step in the right direction is to create a
create_test_users.py
script that generates staff and providers with varying permissions and creates them in the proper AWS tables/user pools. The script could pull from a static CSV file listing key user attributes, including permissions (this will help have a consistent set of usernames for testing). Optionally, it could also generate a CSV file ala thegenerate_mock_data.py
script.Originally posted by @jlkravitz in #401 (comment)
The text was updated successfully, but these errors were encountered: