~sircmpwn/srht-fakedb

Tool to populate SourceHut databases with test data
pages: initial commit
lists: initial commit
todo: initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~sircmpwn/srht-fakedb
read/write
git@git.sr.ht:~sircmpwn/srht-fakedb

You can also use your local clone with git send-email.

#srht-fakedb

A tool which generates fake data for SourceHut.

Usage:

go run cmd/srht-fakedb/main.go [options...] <service>

Where "service" is "git.sr.ht", "meta.sr.ht", etc.

Options include -e to set the email suffix (default: @example.org), which is useful for creating accounts whose emails lead to your catch-all domain.

Also useful is -u, to specify your own test account username, which enables some extra data generation options specific to the tester's account.

#meta.sr.ht

Generates the following user accounts:

  • jim, jane: the standard test accounts. Non-paying users.
  • unpaid: a non-paying user
  • paid: a paying user
  • free: a free user
  • admin: an admin
  • banned: a suspended user
  • pgp: a user with a PGP key (see meta/data/*.pgp)
  • totp: a user with TOTP enabled (see meta/data/totp-*)
  • 32 additional random usernames

#git.sr.ht

Creates test repositories for jim and jane, and the test user if configured.

  • scdoc: small repo
  • linux: large repo
  • unlisted: an unlisted repo
  • private: a private repo

If a test user is configured, an ACL will be added granting you read-only access to ~jim/private and read/write access to ~jane/private.