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/cors.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/cors.rs')
| -rw-r--r-- | grasp-audit/src/specs/grasp01/cors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grasp-audit/src/specs/grasp01/cors.rs b/grasp-audit/src/specs/grasp01/cors.rs index eba9e42..e5d9a27 100644 --- a/grasp-audit/src/specs/grasp01/cors.rs +++ b/grasp-audit/src/specs/grasp01/cors.rs | |||
| @@ -246,7 +246,7 @@ impl CorsTests { | |||
| 246 | let ctx = TestContext::new(client); | 246 | let ctx = TestContext::new(client); |
| 247 | 247 | ||
| 248 | // Create repository announcement to get a real repo path | 248 | // Create repository announcement to get a real repo path |
| 249 | let repo = match ctx.get_fixture(FixtureKind::ValidRepo).await { | 249 | let repo = match ctx.get_fixture(FixtureKind::ValidRepoSent).await { |
| 250 | Ok(r) => r, | 250 | Ok(r) => r, |
| 251 | Err(e) => { | 251 | Err(e) => { |
| 252 | return TestResult::new( | 252 | return TestResult::new( |