Branch: refs/heads/main
Home: https://github.com/dreamwidth/dreamwidth
Commit: 65fd0137eae77e1276ba8f9093b864f98e32e07e
https://github.com/dreamwidth/dreamwidth/commit/65fd0137eae77e1276ba8f9093b864f98e32e07e
Author: Mark Smith mark@dreamwidth.org
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M .devcontainer/setup.sh
A bin/dev/seed-testdata
Log Message:
Seed the dev container with fixed test accounts and content (#3579)
- Seed the dev container with fixed test accounts and content
Add bin/dev/seed-testdata, an idempotent Perl seeder that creates a small,
constant set of accounts/content via the real DW APIs so the dev environment
(and screenshots) have deterministic data to depend on. Wired into
.devcontainer/setup.sh so every container is seeded on create; also runnable by
hand (perl bin/dev/seed-testdata) and safe to re-run (skips anything that
already exists, keyed on username).
Fixture set (shared password "dreamwidth"):
- test_user personal; bio; public + access-only + private entries, tags on
the public one, a comment from test_friend
- test_friend personal; mutual circle (trust+watch) with test_user; one entry
- test_paid personal; premium paid time; one entry
- test_comm community; test_user maintainer, test_friend member; one entry
Uses LJ::Test's t_post_fake_entry/t_post_fake_comm_entry, LJ::User->create_personal
/create_community, add_edge, LJ::Comment->create, and DW::Pay::add_paid_time, so
the data stays valid as the underlying code evolves. The seeder is named without
a .pl extension (like the other bin/dev tools) so it's outside tidyall/00-compile.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
- Seed varied tags across entries
Tag all three of test_user's entries (reusing names so usage counts differ:
test=3, personal=2, others=1, across public/access/private) plus the friend,
paid, and community entries, so the /manage/tags histogram, per-tag security
breakdown, and tag pages have realistic data. Adds a tag_entry helper.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com