upleb.uk

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

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs/grasp01/nip11_document.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/nip11_document.rs
parentc07954f44f4c03cc17d4a83b144667cbcbb226cf (diff)
grasp-audit: show tests under GRASP-01 line
Diffstat (limited to 'grasp-audit/src/specs/grasp01/nip11_document.rs')
-rw-r--r--grasp-audit/src/specs/grasp01/nip11_document.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/grasp-audit/src/specs/grasp01/nip11_document.rs b/grasp-audit/src/specs/grasp01/nip11_document.rs
index 51b147d..33599b1 100644
--- a/grasp-audit/src/specs/grasp01/nip11_document.rs
+++ b/grasp-audit/src/specs/grasp01/nip11_document.rs
@@ -32,12 +32,12 @@ impl Nip11DocumentTests {
32 32
33 /// Test: Serve NIP-11 document 33 /// Test: Serve NIP-11 document
34 /// 34 ///
35 /// Spec: Line 11 of ../grasp/01.md 35 /// Spec: Line 20 of ../grasp/01.md
36 /// Requirement: MUST serve NIP-11 document 36 /// Requirement: MUST serve NIP-11 document
37 pub async fn test_nip11_document_exists(client: &AuditClient) -> TestResult { 37 pub async fn test_nip11_document_exists(client: &AuditClient) -> TestResult {
38 TestResult::new( 38 TestResult::new(
39 "nip11_document_exists", 39 "nip11_document_exists",
40 "GRASP-01:nostr-relay:11", 40 "GRASP-01:nostr-relay:20",
41 "Serve NIP-11 relay information document", 41 "Serve NIP-11 relay information document",
42 ) 42 )
43 .run(|| async { 43 .run(|| async {
@@ -91,12 +91,12 @@ impl Nip11DocumentTests {
91 91
92 /// Test: NIP-11 includes supported_grasps field 92 /// Test: NIP-11 includes supported_grasps field
93 /// 93 ///
94 /// Spec: Line 12 of ../grasp/01.md 94 /// Spec: Line 22 of ../grasp/01.md
95 /// Requirement: MUST list supported GRASPs as string array 95 /// Requirement: MUST list supported GRASPs as string array
96 pub async fn test_nip11_supported_grasps_field(client: &AuditClient) -> TestResult { 96 pub async fn test_nip11_supported_grasps_field(client: &AuditClient) -> TestResult {
97 TestResult::new( 97 TestResult::new(
98 "nip11_supported_grasps_field", 98 "nip11_supported_grasps_field",
99 "GRASP-01:nostr-relay:12", 99 "GRASP-01:nostr-relay:22",
100 "NIP-11 document includes supported_grasps field with GRASP-01", 100 "NIP-11 document includes supported_grasps field with GRASP-01",
101 ) 101 )
102 .run(|| async { 102 .run(|| async {
@@ -167,12 +167,12 @@ impl Nip11DocumentTests {
167 167
168 /// Test: NIP-11 includes repo_acceptance_criteria field 168 /// Test: NIP-11 includes repo_acceptance_criteria field
169 /// 169 ///
170 /// Spec: Line 13 of ../grasp/01.md 170 /// Spec: Line 23 of ../grasp/01.md
171 /// Requirement: MUST list repository acceptance criteria 171 /// Requirement: MUST list repository acceptance criteria
172 pub async fn test_nip11_repo_acceptance_criteria_field(client: &AuditClient) -> TestResult { 172 pub async fn test_nip11_repo_acceptance_criteria_field(client: &AuditClient) -> TestResult {
173 TestResult::new( 173 TestResult::new(
174 "nip11_repo_acceptance_criteria_field", 174 "nip11_repo_acceptance_criteria_field",
175 "GRASP-01:nostr-relay:13", 175 "GRASP-01:nostr-relay:23",
176 "NIP-11 document includes repo_acceptance_criteria field", 176 "NIP-11 document includes repo_acceptance_criteria field",
177 ) 177 )
178 .run(|| async { 178 .run(|| async {
@@ -222,12 +222,12 @@ impl Nip11DocumentTests {
222 222
223 /// Test: NIP-11 curation field handling 223 /// Test: NIP-11 curation field handling
224 /// 224 ///
225 /// Spec: Line 14 of ../grasp/01.md 225 /// Spec: Line 24 of ../grasp/01.md
226 /// Requirement: MUST include curation if curated, omit otherwise 226 /// Requirement: MUST include curation if curated, omit otherwise
227 pub async fn test_nip11_curation_field(client: &AuditClient) -> TestResult { 227 pub async fn test_nip11_curation_field(client: &AuditClient) -> TestResult {
228 TestResult::new( 228 TestResult::new(
229 "nip11_curation_field", 229 "nip11_curation_field",
230 "GRASP-01:nostr-relay:14", 230 "GRASP-01:nostr-relay:24",
231 "NIP-11 curation field present if curated, absent otherwise", 231 "NIP-11 curation field present if curated, absent otherwise",
232 ) 232 )
233 .run(|| async { 233 .run(|| async {