radrootsd

JSON-RPC bridge for Radroots event publishing
git clone https://radroots.dev/git/radrootsd.git
Log | Files | Refs | README | LICENSE

commit 6dd74e4b15ee38d72cca504daf286fe7adc85786
parent d246fa5b4d3de7647bd4f64ecc561f215106f593
Author: triesap <tyson@radroots.org>
Date:   Tue,  7 Jul 2026 19:40:35 +0000

transport: consume shared Reticulum message in tests

- replace daemon-local Reticulum unavailable message fixture with the shared constant
- update source-boundary checks for protocol message ownership
- keep capability response assertions tied to the shared transport crate
- remove duplicated unavailable copy from jsonrpc method tests

Diffstat:
Msrc/transport/jsonrpc/methods/mod.rs | 8++------
Mtests/source_boundary.rs | 6++----
2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/transport/jsonrpc/methods/mod.rs b/src/transport/jsonrpc/methods/mod.rs @@ -27,6 +27,7 @@ mod tests { use jsonrpsee::server::RpcModule; use radroots_identity::RadrootsIdentity; use radroots_nostr::prelude::RadrootsNostrMetadata; + use radroots_transport::RADROOTS_RETICULUM_UNAVAILABLE_MESSAGE; use super::register_all; use crate::app::config::{Nip46Config, TransportPublishConfig}; @@ -34,11 +35,6 @@ mod tests { use crate::transport::jsonrpc::auth::TransportPublishAuthorization; use crate::transport::jsonrpc::{MethodRegistry, RpcContext}; - const APPROVED_RETICULUM_UNAVAILABLE_MESSAGE: &str = concat!( - "Reticulum transport is configured for future compatibility, ", - "but this build does not implement Reticulum delivery." - ); - mod removed_surface_fixtures { pub const BRIDGE_STATUS_METHOD: &str = "bridge.status"; } @@ -153,7 +149,7 @@ mod tests { assert!( response .get() - .contains(APPROVED_RETICULUM_UNAVAILABLE_MESSAGE) + .contains(RADROOTS_RETICULUM_UNAVAILABLE_MESSAGE) ); } } diff --git a/tests/source_boundary.rs b/tests/source_boundary.rs @@ -96,9 +96,7 @@ fn transport_publish_capabilities_expose_per_transport_readiness() { r#"\"transport_kind\":\"reticulum\""#, r#"\"implementation_state\":\"preview_unavailable\""#, r#"\"usable_for_delivery\":false"#, - "APPROVED_RETICULUM_UNAVAILABLE_MESSAGE", - "Reticulum transport is configured for future compatibility, ", - "but this build does not implement Reticulum delivery.", + "RADROOTS_RETICULUM_UNAVAILABLE_MESSAGE", ] { assert!( methods_source.contains(required), @@ -114,7 +112,7 @@ fn transport_publish_capabilities_expose_per_transport_readiness() { for required in [ "pub implementation_state: TransportPublishImplementationState,", "pub usable_for_delivery: bool,", - "Reticulum transport is configured for future compatibility, but this build does not implement Reticulum delivery.", + "RADROOTS_RETICULUM_UNAVAILABLE_MESSAGE", ] { assert!( protocol_source.contains(required),