From 63eeaab855aaadba4f7b795e8e2200eb91579a29 Mon Sep 17 00:00:00 2001 From: Hayt <9e1c23a3fd83f61da34420e4e88ff1b16e45cafcc0cd9019eb07d4ecfa8ca9b0@buzz.block.builderlab.xyz> Date: Tue, 1 Sep 2026 14:28:25 -0400 Subject: [PATCH] fix(nip-fi): rename pg test modules to postgres_tests convention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CI postgres-test-discovery checker requires that PG-backed tests sit inside a module whose name ends with `postgres_tests`. The two test modules in admission.rs used names `pg_integration` and `pg_orchestrator_integration`, which the checker rejects. Rename: mod pg_integration → mod postgres_tests mod pg_orchestrator_integration → mod orchestrator_postgres_tests Update the cross-module import accordingly. No behavioural change. Verified: `scripts/test-postgres-test-discovery.sh` passes across all 401 Rust source files in the crates directory. Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- crates/buzz-relay/src/nip_fi/admission.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/buzz-relay/src/nip_fi/admission.rs b/crates/buzz-relay/src/nip_fi/admission.rs index 5aef480ebf..06330cb495 100644 --- a/crates/buzz-relay/src/nip_fi/admission.rs +++ b/crates/buzz-relay/src/nip_fi/admission.rs @@ -2162,7 +2162,7 @@ mod tests { // pg_poa_update_zero_rows — POA UPDATE matches no rows → Transient // pg_lifecycle_revision_advance — lifecycle_revision advances → BindingRetired #[cfg(test)] -mod pg_integration { +mod postgres_tests { use super::*; use buzz_auth::nip_fi::{ AdmissionError, BindingProvenance, OperationIntent, ProofTransport, ProtectedObjectKind, @@ -2992,8 +2992,8 @@ mod pg_integration { // // Run: DATABASE_URL=postgres://... cargo test -p buzz-relay -- --ignored orchestrator_pg #[cfg(test)] -mod pg_orchestrator_integration { - use super::pg_integration::{setup_fixture, teardown_fixture}; +mod orchestrator_postgres_tests { + use super::postgres_tests::{setup_fixture, teardown_fixture}; use super::*; use crate::nip_fi::NipFiVerify; use buzz_auth::nip_fi::{AdmissionError, BindingProvenance, ProofTransport, RouteCapability};