mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
test: add stub for purgatory maintainer repo sync test
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -70,3 +70,8 @@ isolated_push_test!(test_push_to_nostr_ref_with_wrong_commit_after_event_receive
|
||||
isolated_push_test!(test_push_to_nostr_ref_with_correct_commit_after_event_received_accepted);
|
||||
isolated_push_test!(test_head_set_after_state_event_with_existing_commit);
|
||||
isolated_push_test!(test_head_set_after_git_push_with_required_oids);
|
||||
|
||||
// Note: test_push_of_state_by_maintainer_updates_other_maintainer_repos is not included
|
||||
// as it's a stub for the purgatory feature. It can be run manually once implemented:
|
||||
// isolated_push_test!(test_push_of_state_by_maintainer_updates_other_maintainer_repos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user