diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-25 10:50:59 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-25 10:50:59 +0000 |
| commit | cd01c7379f23d9189beef840ddc523a3c90a9a10 (patch) | |
| tree | d1a83d2b3cd8813f3ec586694158be70a026e091 /grasp-audit/src/lib.rs | |
| parent | 7f71a2e75a66bcacad9057f5e339e511e689b828 (diff) | |
add probe subcommand for end-to-end relay health checks
Implements grasp-audit probe with full write path (publish events,
poll for repo init, push, verify refs match state) and read-only
fallback (find existing announcement, fetch refs). Supports --nsec
for whitelisted relays, --json output, and --watch for continuous
monitoring.
Diffstat (limited to 'grasp-audit/src/lib.rs')
| -rw-r--r-- | grasp-audit/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/grasp-audit/src/lib.rs b/grasp-audit/src/lib.rs index 655ee83..33d0990 100644 --- a/grasp-audit/src/lib.rs +++ b/grasp-audit/src/lib.rs | |||
| @@ -32,6 +32,7 @@ pub mod audit; | |||
| 32 | pub mod client; | 32 | pub mod client; |
| 33 | pub mod fixtures; | 33 | pub mod fixtures; |
| 34 | pub mod isolation; | 34 | pub mod isolation; |
| 35 | pub mod probe; | ||
| 35 | pub mod result; | 36 | pub mod result; |
| 36 | pub mod specs; | 37 | pub mod specs; |
| 37 | 38 | ||
| @@ -43,6 +44,7 @@ pub use fixtures::{ | |||
| 43 | create_commit, | 44 | create_commit, |
| 44 | create_deterministic_commit, | 45 | create_deterministic_commit, |
| 45 | create_deterministic_commit_with_variant, | 46 | create_deterministic_commit_with_variant, |
| 47 | init_local_repo, | ||
| 46 | // Verification helpers | 48 | // Verification helpers |
| 47 | send_and_verify_accepted, | 49 | send_and_verify_accepted, |
| 48 | send_and_verify_rejected, | 50 | send_and_verify_rejected, |
| @@ -58,6 +60,7 @@ pub use fixtures::{ | |||
| 58 | PR_TEST_COMMIT_HASH, | 60 | PR_TEST_COMMIT_HASH, |
| 59 | RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH, | 61 | RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH, |
| 60 | }; | 62 | }; |
| 63 | pub use probe::{run_probe, ProbeCheck, ProbeReport}; | ||
| 61 | pub use result::{AuditResult, TestResult}; | 64 | pub use result::{AuditResult, TestResult}; |
| 62 | 65 | ||
| 63 | // Re-export commonly used types | 66 | // Re-export commonly used types |