From e6ceab90de1acad154624022a6036efac18abab6 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 28 Nov 2025 16:27:29 +0000 Subject: test: added checks that refs/nostr/ match commit in PR / update --- tests/push_authorization.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/push_authorization.rs b/tests/push_authorization.rs index 38b02d4..1f8e0ca 100644 --- a/tests/push_authorization.rs +++ b/tests/push_authorization.rs @@ -61,11 +61,13 @@ macro_rules! isolated_push_test { } // Generate isolated tests for all push authorization tests -isolated_push_test!(test_push_authorized_by_owner_state); isolated_push_test!(test_push_rejected_without_state_event); +isolated_push_test!(test_push_authorized_by_owner_state); isolated_push_test!(test_push_rejected_wrong_commit); isolated_push_test!(test_push_authorized_by_maintainer_state_only); isolated_push_test!(test_push_authorized_by_recursive_maintainer_state); -isolated_push_test!(test_non_maintainer_state_rejected); -isolated_push_test!(test_push_to_refs_nostr_valid_event_id); -isolated_push_test!(test_push_to_refs_nostr_invalid_event_id); \ No newline at end of file +isolated_push_test!(test_push_to_nostr_ref_with_invalid_event_id_rejected); +isolated_push_test!(test_pr_push_to_nostr_ref_with_wrong_commit_accepted_before_event_received); +isolated_push_test!(test_pr_event_published_removes_nostr_ref_at_incorrect_commit); +isolated_push_test!(test_push_to_nostr_ref_with_wrong_commit_after_event_received_rejected); +isolated_push_test!(test_push_to_nostr_ref_with_correct_commit_after_event_received_accepted); \ No newline at end of file -- cgit v1.2.3