upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/push_authorization.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-28 16:27:29 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-28 16:27:29 +0000
commite6ceab90de1acad154624022a6036efac18abab6 (patch)
tree315c7b7ffc22339ed6cd0a31002e2fb0df190684 /tests/push_authorization.rs
parentb94262161df99966fbb8aa6861fb46603039111f (diff)
test: added checks that refs/nostr/<event-id> match commit in PR / update
Diffstat (limited to 'tests/push_authorization.rs')
-rw-r--r--tests/push_authorization.rs10
1 files changed, 6 insertions, 4 deletions
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 {
61} 61}
62 62
63// Generate isolated tests for all push authorization tests 63// Generate isolated tests for all push authorization tests
64isolated_push_test!(test_push_authorized_by_owner_state);
65isolated_push_test!(test_push_rejected_without_state_event); 64isolated_push_test!(test_push_rejected_without_state_event);
65isolated_push_test!(test_push_authorized_by_owner_state);
66isolated_push_test!(test_push_rejected_wrong_commit); 66isolated_push_test!(test_push_rejected_wrong_commit);
67isolated_push_test!(test_push_authorized_by_maintainer_state_only); 67isolated_push_test!(test_push_authorized_by_maintainer_state_only);
68isolated_push_test!(test_push_authorized_by_recursive_maintainer_state); 68isolated_push_test!(test_push_authorized_by_recursive_maintainer_state);
69isolated_push_test!(test_non_maintainer_state_rejected); 69isolated_push_test!(test_push_to_nostr_ref_with_invalid_event_id_rejected);
70isolated_push_test!(test_push_to_refs_nostr_valid_event_id); 70isolated_push_test!(test_pr_push_to_nostr_ref_with_wrong_commit_accepted_before_event_received);
71isolated_push_test!(test_push_to_refs_nostr_invalid_event_id); \ No newline at end of file 71isolated_push_test!(test_pr_event_published_removes_nostr_ref_at_incorrect_commit);
72isolated_push_test!(test_push_to_nostr_ref_with_wrong_commit_after_event_received_rejected);
73isolated_push_test!(test_push_to_nostr_ref_with_correct_commit_after_event_received_accepted); \ No newline at end of file