seed-test-data

command
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package main seeds test data across the domains, RE, reports, and alarms databases so that the backfill-roles scripts can be tested end-to-end.

It creates one domain, two users (one domain member, one not), several rules/reports with and without pre-existing roles, a couple of alarms, and optionally a SpiceDB parent relation for one rule to exercise the "policy already exists" path.

All IDs are deterministic so re-running is idempotent (INSERT … ON CONFLICT DO NOTHING).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL