upleb.uk

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

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs/grasp01/repository_creation.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-12 12:57:44 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-12 12:57:44 +0000
commitdcaaa0c44c46f963929ab0baa91f63759ec702dc (patch)
tree1808621ff43eb01acaabe091033672d347bfbf67 /grasp-audit/src/specs/grasp01/repository_creation.rs
parent3fd6ce4149d567c67009b0332ca76c0cd6f51055 (diff)
refactor(grasp-audit): split ValidRepo into Sent/Served, add tolerant purgatory
- Rename ValidRepo to ValidRepoSent (announcement sent, may be in purgatory) - Add ValidRepoServed (announcement queryable after git data pushed) - Add send_event_and_note_purgatory() for tolerant purgatory detection - Update fixtures to use tolerant method instead of strict assertion - Update event_acceptance_policy tests to use ValidRepoServed This enables tests to pass regardless of purgatory implementation status while still having explicit purgatory tests that verify the behavior.
Diffstat (limited to 'grasp-audit/src/specs/grasp01/repository_creation.rs')
-rw-r--r--grasp-audit/src/specs/grasp01/repository_creation.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/grasp-audit/src/specs/grasp01/repository_creation.rs b/grasp-audit/src/specs/grasp01/repository_creation.rs
index a702afe..5730f1c 100644
--- a/grasp-audit/src/specs/grasp01/repository_creation.rs
+++ b/grasp-audit/src/specs/grasp01/repository_creation.rs
@@ -51,7 +51,7 @@ impl RepositoryCreationTests {
51 let ctx = TestContext::new(client); 51 let ctx = TestContext::new(client);
52 52
53 // Use TestContext to create and send repository announcement 53 // Use TestContext to create and send repository announcement
54 let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { 54 let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await {
55 Ok(r) => r, 55 Ok(r) => r,
56 Err(e) => { 56 Err(e) => {
57 return TestResult::new( 57 return TestResult::new(
@@ -131,7 +131,7 @@ impl RepositoryCreationTests {
131 let ctx = TestContext::new(client); 131 let ctx = TestContext::new(client);
132 132
133 // Create a repository announcement 133 // Create a repository announcement
134 let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { 134 let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await {
135 Ok(r) => r, 135 Ok(r) => r,
136 Err(e) => { 136 Err(e) => {
137 return TestResult::new( 137 return TestResult::new(
@@ -210,7 +210,7 @@ impl RepositoryCreationTests {
210 210
211 let ctx = TestContext::new(client); 211 let ctx = TestContext::new(client);
212 212
213 let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { 213 let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await {
214 Ok(r) => r, 214 Ok(r) => r,
215 Err(e) => { 215 Err(e) => {
216 return TestResult::new( 216 return TestResult::new(