diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-12 12:57:44 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-12 12:57:44 +0000 |
| commit | dcaaa0c44c46f963929ab0baa91f63759ec702dc (patch) | |
| tree | 1808621ff43eb01acaabe091033672d347bfbf67 /grasp-audit/src/specs/grasp01/git_clone.rs | |
| parent | 3fd6ce4149d567c67009b0332ca76c0cd6f51055 (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/git_clone.rs')
| -rw-r--r-- | grasp-audit/src/specs/grasp01/git_clone.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grasp-audit/src/specs/grasp01/git_clone.rs b/grasp-audit/src/specs/grasp01/git_clone.rs index fda472b..0c223f4 100644 --- a/grasp-audit/src/specs/grasp01/git_clone.rs +++ b/grasp-audit/src/specs/grasp01/git_clone.rs | |||
| @@ -49,7 +49,7 @@ impl GitCloneTests { | |||
| 49 | let ctx = TestContext::new(client); | 49 | let ctx = TestContext::new(client); |
| 50 | 50 | ||
| 51 | // Create repository announcement | 51 | // Create repository announcement |
| 52 | let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { | 52 | let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await { |
| 53 | Ok(r) => r, | 53 | Ok(r) => r, |
| 54 | Err(e) => { | 54 | Err(e) => { |
| 55 | return TestResult::new( | 55 | return TestResult::new( |
| @@ -171,7 +171,7 @@ impl GitCloneTests { | |||
| 171 | let ctx = TestContext::new(client); | 171 | let ctx = TestContext::new(client); |
| 172 | 172 | ||
| 173 | // Create repository announcement | 173 | // Create repository announcement |
| 174 | let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { | 174 | let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await { |
| 175 | Ok(r) => r, | 175 | Ok(r) => r, |
| 176 | Err(e) => { | 176 | Err(e) => { |
| 177 | return TestResult::new( | 177 | return TestResult::new( |
| @@ -274,7 +274,7 @@ impl GitCloneTests { | |||
| 274 | let ctx = TestContext::new(client); | 274 | let ctx = TestContext::new(client); |
| 275 | 275 | ||
| 276 | // Create repository announcement | 276 | // Create repository announcement |
| 277 | let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { | 277 | let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await { |
| 278 | Ok(r) => r, | 278 | Ok(r) => r, |
| 279 | Err(e) => { | 279 | Err(e) => { |
| 280 | return TestResult::new( | 280 | return TestResult::new( |