upleb.uk

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

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs/grasp01/nip01_smoke.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-02 20:54:15 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-02 21:03:24 +0000
commit5c10ca008413744b09136618eaa85275c997704c (patch)
treeaf24387d8916bdec26315a31f67bd99c39544544 /grasp-audit/src/specs/grasp01/nip01_smoke.rs
parentc07954f44f4c03cc17d4a83b144667cbcbb226cf (diff)
grasp-audit: show tests under GRASP-01 line
Diffstat (limited to 'grasp-audit/src/specs/grasp01/nip01_smoke.rs')
-rw-r--r--grasp-audit/src/specs/grasp01/nip01_smoke.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/grasp-audit/src/specs/grasp01/nip01_smoke.rs b/grasp-audit/src/specs/grasp01/nip01_smoke.rs
index 5161da8..9a7d7d1 100644
--- a/grasp-audit/src/specs/grasp01/nip01_smoke.rs
+++ b/grasp-audit/src/specs/grasp01/nip01_smoke.rs
@@ -32,7 +32,7 @@ impl Nip01SmokeTests {
32 pub async fn test_websocket_connection(client: &AuditClient) -> TestResult { 32 pub async fn test_websocket_connection(client: &AuditClient) -> TestResult {
33 TestResult::new( 33 TestResult::new(
34 "websocket_connection", 34 "websocket_connection",
35 "NIP-01", 35 "GRASP-01:nostr-relay:7",
36 "Can establish WebSocket connection to /", 36 "Can establish WebSocket connection to /",
37 ) 37 )
38 .run(|| async { 38 .run(|| async {
@@ -61,7 +61,7 @@ impl Nip01SmokeTests {
61 pub async fn test_send_receive_event(client: &AuditClient) -> TestResult { 61 pub async fn test_send_receive_event(client: &AuditClient) -> TestResult {
62 TestResult::new( 62 TestResult::new(
63 "send_receive_event", 63 "send_receive_event",
64 "NIP-01", 64 "GRASP-01:nostr-relay:7",
65 "Can send EVENT and receive OK response", 65 "Can send EVENT and receive OK response",
66 ) 66 )
67 .run(|| async { 67 .run(|| async {
@@ -127,7 +127,7 @@ impl Nip01SmokeTests {
127 pub async fn test_create_subscription(client: &AuditClient) -> TestResult { 127 pub async fn test_create_subscription(client: &AuditClient) -> TestResult {
128 TestResult::new( 128 TestResult::new(
129 "create_subscription", 129 "create_subscription",
130 "NIP-01", 130 "GRASP-01:nostr-relay:7",
131 "Can create subscription with REQ and receive EOSE", 131 "Can create subscription with REQ and receive EOSE",
132 ) 132 )
133 .run(|| async { 133 .run(|| async {
@@ -163,7 +163,7 @@ impl Nip01SmokeTests {
163 /// Spec: NIP-01 CLOSE message 163 /// Spec: NIP-01 CLOSE message
164 /// Requirement: Relay MUST support CLOSE to end subscriptions 164 /// Requirement: Relay MUST support CLOSE to end subscriptions
165 pub async fn test_close_subscription(client: &AuditClient) -> TestResult { 165 pub async fn test_close_subscription(client: &AuditClient) -> TestResult {
166 TestResult::new("close_subscription", "NIP-01", "Can close subscriptions") 166 TestResult::new("close_subscription", "GRASP-01:nostr-relay:7", "Can close subscriptions")
167 .run(|| async { 167 .run(|| async {
168 // For now, we just verify we can query events 168 // For now, we just verify we can query events
169 // Full subscription management with CLOSE would require 169 // Full subscription management with CLOSE would require
@@ -189,7 +189,7 @@ impl Nip01SmokeTests {
189 pub async fn test_reject_invalid_signature(client: &AuditClient) -> TestResult { 189 pub async fn test_reject_invalid_signature(client: &AuditClient) -> TestResult {
190 TestResult::new( 190 TestResult::new(
191 "reject_invalid_signature", 191 "reject_invalid_signature",
192 "NIP-01", 192 "GRASP-01:nostr-relay:7",
193 "Rejects events with invalid signatures", 193 "Rejects events with invalid signatures",
194 ) 194 )
195 .run(|| async { 195 .run(|| async {
@@ -243,7 +243,7 @@ impl Nip01SmokeTests {
243 pub async fn test_reject_invalid_event_id(client: &AuditClient) -> TestResult { 243 pub async fn test_reject_invalid_event_id(client: &AuditClient) -> TestResult {
244 TestResult::new( 244 TestResult::new(
245 "reject_invalid_event_id", 245 "reject_invalid_event_id",
246 "NIP-01", 246 "GRASP-01:nostr-relay:7",
247 "Rejects events with invalid event IDs", 247 "Rejects events with invalid event IDs",
248 ) 248 )
249 .run(|| async { 249 .run(|| async {