mirror of
https://github.com/block/buzz.git
synced 2026-10-29 21:41:33 +00:00
fix(nip-fi): rename pg test modules to postgres_tests convention
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 <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user