|Nicholas Hope 0a2f96ce25|
This script must be run via python on your mastodon server because it calls the
tootctl administration tool. There's lots of stuff you can do with the Mastodon API, but creating users like this requires a CLI tool.
This is a one-time step that you do when you begin to use tootapalooza. You can delete this script after you run it once.
- Decide on an email address to use for all your accounts. (See EMAIL ADDRESSES below)
- Decide how many you want to run
- Copy this
make-users.pyscript to your mastodon server.
cdto a directory where you can write an output file. You could do it from
/tmpif you wanted to.
- Make sure the mastodon
tootctlbinary is in your path, or provide the path as a
- This tool will run with
RAILS_ENV=production. If you don't want that, edit the script.
- Run the tool providing a number of users to create, and a base email address. E.g.:
python3 make-users.py -n 10 -e email@example.com
- A file named
users.tomlwill be created. Copy that file to the place where tootapalooza is going to run. Note: This file has plaintext user names and passwords! Handle it carefully!
- You're done. You can delete this script from your mastodon server. You should probably delete the text file full of userids and passwords too. :)
There will be some emails generated (the tootapalooza system tries to minimise them), and email addresses are needed for logging in. So we generate one email address per test user. You give us a regular email address like this:
firstname.lastname@example.org. We will generate userIDs that look like this:
tooter_pqda_568. And we will assign the email address:
email@example.com to the
tooter_pqda_568 Mastodon account. For most email services (GMail, Yahoo, Hotmail), this "plus addressing" has been an Internet standard for decades.