upleb.uk

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

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs/grasp01
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-23 15:20:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-23 15:25:57 +0000
commitac3b71ba65bb52b2d85f1ab9f6c00316a1a885ab (patch)
tree4127a1265dfac6136a75ea241af5579f023c5b0e /grasp-audit/src/specs/grasp01
parentea3f90d3952f0a1760dbb03ff4a706731534514c (diff)
test: prepare OwnerStateDataPushed fixture for purgatory
This is the model for how to prepare all push tests for purgatory
Diffstat (limited to 'grasp-audit/src/specs/grasp01')
-rw-r--r--grasp-audit/src/specs/grasp01/push_authorization.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/grasp-audit/src/specs/grasp01/push_authorization.rs b/grasp-audit/src/specs/grasp01/push_authorization.rs
index 4f21e70..6726fe5 100644
--- a/grasp-audit/src/specs/grasp01/push_authorization.rs
+++ b/grasp-audit/src/specs/grasp01/push_authorization.rs
@@ -486,9 +486,10 @@ impl PushAuthorizationTests {
486 /// 486 ///
487 /// This test uses the OwnerStateDataPushed fixture which handles all 4 stages: 487 /// This test uses the OwnerStateDataPushed fixture which handles all 4 stages:
488 /// 1. **Generated**: Creates RepoState (repo announcement + state event) 488 /// 1. **Generated**: Creates RepoState (repo announcement + state event)
489 /// 2. **Sent**: Sends events to relay 489 /// 2. **Sent**: Sends events to relay (returns OK, accepted but 'purgatory:...' message)
490 /// 3. **Verified**: Confirms events accepted by relay 490 /// 3. **Verify Not Served**: Confirms event is not served by relays
491 /// 4. **DataPushed**: Clones repo, creates deterministic commit, pushes to relay 491 /// 4. **DataPushed**: Clones repo, creates deterministic commit, pushes to relay
492 /// 5. **Verified**: Confirms event is served by relay
492 /// 493 ///
493 /// The test wraps the fixture result in pass/fail using the error message. 494 /// The test wraps the fixture result in pass/fail using the error message.
494 #[allow(unused_variables)] // relay_domain is now handled by fixture 495 #[allow(unused_variables)] // relay_domain is now handled by fixture
@@ -504,7 +505,7 @@ impl PushAuthorizationTests {
504 match ctx.get_fixture(FixtureKind::OwnerStateDataPushed).await { 505 match ctx.get_fixture(FixtureKind::OwnerStateDataPushed).await {
505 Ok(_state_event) => TestResult::new( 506 Ok(_state_event) => TestResult::new(
506 test_name, 507 test_name,
507 "GRASP-01:git-http:36", 508 "GRASP-01:git-http:36", // TODO do we add purgatory line here?
508 "Push authorized with matching state", 509 "Push authorized with matching state",
509 ) 510 )
510 .pass(), 511 .pass(),