fix(tests): insert prerequisite node in XRPC seed data for FK constraints
Author: Aaron Steven White
Commit
93a3426a8169675c8c83e2d740a84e5f04ff7651Parent: 3192bdaf77
Structural diff unavailable
These commits were pushed via plain git push, so no pre-parsed
schemas are available. Install git-remote-cospan and re-push via panproto:// to
see scope-level changes, breaking change detection, and semantic diffs.
brew install panproto/tap/git-remote-cospan1 file changed +14 -0
@@ -60,6 +60,20 @@ async fn start_server(pool: PgPool) -> String {
6060 async fn seed_test_data(pool: &PgPool) { 6161 let now = Utc::now(); 6262 63+ // Insert prerequisite node 64+ db::node::upsert( 65+ pool, 66+ &db::node::NodeRow { 67+ did: "did:plc:node1".to_string(), 68+ rkey: "self".to_string(), 69+ public_endpoint: Some("https://node1.example.com".to_string()), 70+ created_at: now, 71+ indexed_at: now, 72+ }, 73+ ) 74+ .await 75+ .unwrap(); 76+ 6377 // Seed repos 6478 for (did, name, desc, protocol) in [ 6579 (