You've already forked tribes-plugin-supertest
forked from tribes/tribes-plugin-template
e042f3265d
Replace the template plugin with a migration-bearing supertest fixture. Add linked Ash resources, reversible migrations, a local-only JSON API for infra scenarios, and host-backed tests covering the plugin contract and API behavior.
1.0 KiB
1.0 KiB
tribes-plugin-supertest
Migration and sync fixture plugin for Tribes supertest scenarios.
This plugin is intentionally small and boring. It exists so live rollout tests can validate behavior that Aether does not cover:
- plugin-owned Ash resources
AshNostrSyncregistration for plugin domains- reversible plugin database migrations
- plugin-owned JSON API access from the infra runner
Runtime surface
The plugin exposes a local-only JSON API under /plugins-api/supertest:
GET /healthGET /schemaPOST /resetPOST /casesPOST /cases/:id/incrementPOST /eventsGET /state?run_id=...
The API rejects non-loopback requests. Supertest calls it over SSH with curl
against 127.0.0.1:4000 on each node.
Resources
Supertest.CaseSupertest.Event
Both resources are backed by Tribes.Repo, use AshPostgres.DataLayer, and
participate in AshNostrSync.
Development
Use the host-backed plugin helper:
devenv shell plugin validate
devenv shell plugin test
devenv shell plugin precommit