diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 16:27:29 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 16:27:29 +0000 |
| commit | e6ceab90de1acad154624022a6036efac18abab6 (patch) | |
| tree | 315c7b7ffc22339ed6cd0a31002e2fb0df190684 /tests/push_authorization.rs | |
| parent | b94262161df99966fbb8aa6861fb46603039111f (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.rs | 10 |
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 |
| 64 | isolated_push_test!(test_push_authorized_by_owner_state); | ||
| 65 | isolated_push_test!(test_push_rejected_without_state_event); | 64 | isolated_push_test!(test_push_rejected_without_state_event); |
| 65 | isolated_push_test!(test_push_authorized_by_owner_state); | ||
| 66 | isolated_push_test!(test_push_rejected_wrong_commit); | 66 | isolated_push_test!(test_push_rejected_wrong_commit); |
| 67 | isolated_push_test!(test_push_authorized_by_maintainer_state_only); | 67 | isolated_push_test!(test_push_authorized_by_maintainer_state_only); |
| 68 | isolated_push_test!(test_push_authorized_by_recursive_maintainer_state); | 68 | isolated_push_test!(test_push_authorized_by_recursive_maintainer_state); |
| 69 | isolated_push_test!(test_non_maintainer_state_rejected); | 69 | isolated_push_test!(test_push_to_nostr_ref_with_invalid_event_id_rejected); |
| 70 | isolated_push_test!(test_push_to_refs_nostr_valid_event_id); | 70 | isolated_push_test!(test_pr_push_to_nostr_ref_with_wrong_commit_accepted_before_event_received); |
| 71 | isolated_push_test!(test_push_to_refs_nostr_invalid_event_id); \ No newline at end of file | 71 | isolated_push_test!(test_pr_event_published_removes_nostr_ref_at_incorrect_commit); |
| 72 | isolated_push_test!(test_push_to_nostr_ref_with_wrong_commit_after_event_received_rejected); | ||
| 73 | isolated_push_test!(test_push_to_nostr_ref_with_correct_commit_after_event_received_accepted); \ No newline at end of file | ||