upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-05 07:03:04 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-05 07:03:04 +0000
commit74c7b090a6ec7f749a3a79dcb0c9a0a6bc198702 (patch)
treecfb3a0b6ac170ff54a7f82cfd0472ecbfe1206cf /grasp-audit/src/specs
parent5cd47079ee762125817612d2bf82a0bca07da3ad (diff)
test: add ngit-relay integration testing instructions
- Add RELAY_URL environment variable support to tests - Document expected behavior when testing against ngit-relay - Add test-ngit-relay.sh script for automated testing - Clarify that ngit-relay only accepts Git events (NIP-34) - Note that 4/6 NIP-01 smoke tests passing is expected - Key validation tests (invalid signature/ID) pass correctly - Add instructions for testing against general-purpose relays The validation tests passing confirms ngit-relay implements NIP-01 correctly, even though it has restrictive acceptance policies.
Diffstat (limited to 'grasp-audit/src/specs')
-rw-r--r--grasp-audit/src/specs/nip01_smoke.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/grasp-audit/src/specs/nip01_smoke.rs b/grasp-audit/src/specs/nip01_smoke.rs
index 569997b..20f80ea 100644
--- a/grasp-audit/src/specs/nip01_smoke.rs
+++ b/grasp-audit/src/specs/nip01_smoke.rs
@@ -295,8 +295,12 @@ mod tests {
295 #[tokio::test] 295 #[tokio::test]
296 #[ignore] // Ignore by default since it needs a running relay 296 #[ignore] // Ignore by default since it needs a running relay
297 async fn test_smoke_tests_against_relay() { 297 async fn test_smoke_tests_against_relay() {
298 // Use RELAY_URL env var if set, otherwise default to localhost:7000
299 let relay_url = std::env::var("RELAY_URL")
300 .unwrap_or_else(|_| "ws://localhost:7000".to_string());
301
298 let config = AuditConfig::ci(); 302 let config = AuditConfig::ci();
299 let client = AuditClient::new("ws://localhost:7000", config) 303 let client = AuditClient::new(&relay_url, config)
300 .await 304 .await
301 .expect("Failed to connect to relay"); 305 .expect("Failed to connect to relay");
302 306