upleb.uk

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

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs/grasp01/push_authorization.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-23 15:49:46 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-23 15:49:46 +0000
commit4c807f9c655acd5323419df36ef7c22031e57e94 (patch)
tree6fef35a65047a27d598084944b6b95fd90efd8f7 /grasp-audit/src/specs/grasp01/push_authorization.rs
parentac3b71ba65bb52b2d85f1ab9f6c00316a1a885ab (diff)
test: prepare other state tests for purgatory feature
Diffstat (limited to 'grasp-audit/src/specs/grasp01/push_authorization.rs')
-rw-r--r--grasp-audit/src/specs/grasp01/push_authorization.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/grasp-audit/src/specs/grasp01/push_authorization.rs b/grasp-audit/src/specs/grasp01/push_authorization.rs
index 6726fe5..64ce8f9 100644
--- a/grasp-audit/src/specs/grasp01/push_authorization.rs
+++ b/grasp-audit/src/specs/grasp01/push_authorization.rs
@@ -678,12 +678,12 @@ impl PushAuthorizationTests {
678 /// without publishing their own repo announcement. The maintainer is still 678 /// without publishing their own repo announcement. The maintainer is still
679 /// listed in the owner's announcement, so they're a valid maintainer. 679 /// listed in the owner's announcement, so they're a valid maintainer.
680 /// 680 ///
681 /// This test uses the MaintainerStateDataPushed fixture which handles all 4 stages: 681 /// This test uses the MaintainerStateDataPushed fixture which handles all 5 stages:
682 /// 1. **Generated**: Creates ValidRepo (owner's announcement with maintainer in maintainers tag) 682 /// 1. **OwnerStateDataPushed dependency**: Owner's repo and state event already on relay, git data pushed
683 /// + MaintainerState (maintainer's state event ONLY - no announcement) 683 /// 2. **Sent**: Sends maintainer state event to relay (returns OK, accepted but 'purgatory:...' message)
684 /// 2. **Sent**: Sends events to relay 684 /// 3. **Verify Not Served**: Confirms event is not served by relays
685 /// 3. **Verified**: Confirms events accepted by relay 685 /// 4. **DataPushed**: Clones repo, creates maintainer deterministic commit, force-pushes to relay
686 /// 4. **DataPushed**: Clones repo, creates maintainer deterministic commit, pushes to relay 686 /// 5. **Verified**: Confirms event is served by relay
687 /// 687 ///
688 /// The test wraps the fixture result in pass/fail using the error message. 688 /// The test wraps the fixture result in pass/fail using the error message.
689 #[allow(unused_variables)] // relay_domain is now handled by fixture 689 #[allow(unused_variables)] // relay_domain is now handled by fixture
@@ -720,13 +720,13 @@ impl PushAuthorizationTests {
720 /// GRASP-01: "respecting the recursive maintainer set" 720 /// GRASP-01: "respecting the recursive maintainer set"
721 /// This tests recursive maintainer chains: Owner -> Maintainer -> RecursiveMaintainer 721 /// This tests recursive maintainer chains: Owner -> Maintainer -> RecursiveMaintainer
722 /// 722 ///
723 /// This test uses the RecursiveMaintainerStateDataPushed fixture which handles all 4 stages: 723 /// This test uses the RecursiveMaintainerStateDataPushed fixture which handles all 5 stages:
724 /// 1. **Generated**: Creates MaintainerStateDataPushed (owner's + maintainer's data pushed) 724 /// 1. **Generated**: (MaintainerStateDataPushed dependency includes ValidRepo + OwnerStateDataPushed)
725 /// + MaintainerAnnouncement (maintainer lists recursive maintainer) 725 /// Creates MaintainerAnnouncement + RecursiveMaintainerState
726 /// + RecursiveMaintainerState (recursive maintainer's state event) 726 /// 2. **Sent**: Sends events to relay (returns OK, accepted but 'purgatory:...' message)
727 /// 2. **Sent**: Sends events to relay 727 /// 3. **Verify Not Served**: Confirms event is not served by relays
728 /// 3. **Verified**: Confirms events accepted by relay
729 /// 4. **DataPushed**: Clones repo, creates recursive maintainer deterministic commit, pushes to relay 728 /// 4. **DataPushed**: Clones repo, creates recursive maintainer deterministic commit, pushes to relay
729 /// 5. **Verified**: Confirms event is served by relay
730 /// 730 ///
731 /// The test wraps the fixture result in pass/fail using the error message. 731 /// The test wraps the fixture result in pass/fail using the error message.
732 #[allow(unused_variables)] // relay_domain is now handled by fixture 732 #[allow(unused_variables)] // relay_domain is now handled by fixture