From 2f4da43c5b90597ba671986d15c9227ebbfc84ce Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 23 Dec 2025 15:59:49 +0000 Subject: test: add stub for purgatory maintainer repo sync test --- .../src/specs/grasp01/push_authorization.rs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'grasp-audit') diff --git a/grasp-audit/src/specs/grasp01/push_authorization.rs b/grasp-audit/src/specs/grasp01/push_authorization.rs index 64ce8f9..0ba5b5d 100644 --- a/grasp-audit/src/specs/grasp01/push_authorization.rs +++ b/grasp-audit/src/specs/grasp01/push_authorization.rs @@ -355,6 +355,8 @@ impl PushAuthorizationTests { results.add( Self::test_push_authorized_by_recursive_maintainer_state(client, relay_domain).await, ); + // Note: test_push_of_state_by_maintainer_updates_other_maintainer_repos is not included + // in run_tests as it's a stub for the purgatory feature and returns .skip() results.add( Self::test_push_to_nostr_ref_with_invalid_event_id_rejected(client, relay_domain).await, ); @@ -758,6 +760,38 @@ impl PushAuthorizationTests { } } + /// Test that push of state by one maintainer updates git repos of other maintainers + /// + /// GRASP-01: "respecting the recursive maintainer set" + /// + /// This test verifies that when a maintainer publishes a state event, it updates + /// the git repository state for all other maintainers' views. This ensures git + /// repositories always reflect the state according to nostr events (including state + /// from recursive maintainers). + /// + /// ## Implementation Note + /// + /// This test is a stub for the purgatory feature. It will be implemented as part + /// of GRASP-02 purgatory functionality. + /// + /// ## Fixture Compatibility + /// + /// This test will use: + /// - `MaintainerStateDataPushed` - maintainer's state event with git data pushed + /// - Multiple maintainer clones to verify state propagation + #[allow(dead_code)] + pub async fn test_push_of_state_by_maintainer_updates_other_maintainer_repos( + _client: &AuditClient, + _relay_domain: &str, + ) -> TestResult { + TestResult::new( + "test_push_of_state_by_maintainer_updates_other_maintainer_repos", + "GRASP-01:git-http:purgatory", + "Maintainer state updates propagate to other maintainer repos", + ) + .fail("Not yet implemented - requires purgatory feature (GRASP-02)") + } + /// Test that non-maintainer state event is ignored /// /// GRASP-01: "respecting the recursive maintainer set" -- cgit v1.2.3