diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 04:27:07 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 04:27:07 +0000 |
| commit | eee0a521afe0492f04bee58c9a236683fb23601b (patch) | |
| tree | b0414e164de2946e39613a45f5a2724eadfe1821 /grasp-audit/src/bin | |
| parent | b2a43ffbd965a2b561d7b4e4c582dfeadd099ed3 (diff) | |
audit: fix shared test context to minimise events sent to production relays
Diffstat (limited to 'grasp-audit/src/bin')
| -rw-r--r-- | grasp-audit/src/bin/grasp-audit.rs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/grasp-audit/src/bin/grasp-audit.rs b/grasp-audit/src/bin/grasp-audit.rs index 29f9c9a..2aabefe 100644 --- a/grasp-audit/src/bin/grasp-audit.rs +++ b/grasp-audit/src/bin/grasp-audit.rs | |||
| @@ -120,7 +120,27 @@ async fn main() -> Result<()> { | |||
| 120 | "all" => { | 120 | "all" => { |
| 121 | println!("Running all tests...\n"); | 121 | println!("Running all tests...\n"); |
| 122 | let mut all_results = AuditResult::new("All GRASP-01 Tests"); | 122 | let mut all_results = AuditResult::new("All GRASP-01 Tests"); |
| 123 | 123 | ||
| 124 | // Repository creation tests | ||
| 125 | println!(" → Repository creation tests..."); | ||
| 126 | let repo_results = specs::RepositoryCreationTests::run_all(&client, &relay_domain).await; | ||
| 127 | all_results.merge(repo_results); | ||
| 128 | |||
| 129 | // Git clone tests | ||
| 130 | println!(" → Git clone tests..."); | ||
| 131 | let clone_results = specs::GitCloneTests::run_all(&client, &relay_domain).await; | ||
| 132 | all_results.merge(clone_results); | ||
| 133 | |||
| 134 | // Push authorization tests | ||
| 135 | println!(" → Push authorization tests..."); | ||
| 136 | let push_results = specs::PushAuthorizationTests::run_all(&client, &relay_domain).await; | ||
| 137 | all_results.merge(push_results); | ||
| 138 | |||
| 139 | // Event acceptance policy tests | ||
| 140 | println!(" → Event acceptance policy tests..."); | ||
| 141 | let event_results = specs::EventAcceptancePolicyTests::run_all(&client).await; | ||
| 142 | all_results.merge(event_results); | ||
| 143 | |||
| 124 | // NIP-01 smoke tests | 144 | // NIP-01 smoke tests |
| 125 | println!(" → NIP-01 smoke tests..."); | 145 | println!(" → NIP-01 smoke tests..."); |
| 126 | let nip01_results = specs::Nip01SmokeTests::run_all(&client).await; | 146 | let nip01_results = specs::Nip01SmokeTests::run_all(&client).await; |
| @@ -131,30 +151,10 @@ async fn main() -> Result<()> { | |||
| 131 | let nip11_results = specs::Nip11DocumentTests::run_all(&client).await; | 151 | let nip11_results = specs::Nip11DocumentTests::run_all(&client).await; |
| 132 | all_results.merge(nip11_results); | 152 | all_results.merge(nip11_results); |
| 133 | 153 | ||
| 134 | // Event acceptance policy tests | ||
| 135 | println!(" → Event acceptance policy tests..."); | ||
| 136 | let event_results = specs::EventAcceptancePolicyTests::run_all(&client).await; | ||
| 137 | all_results.merge(event_results); | ||
| 138 | |||
| 139 | // CORS tests | 154 | // CORS tests |
| 140 | println!(" → CORS tests..."); | 155 | println!(" → CORS tests..."); |
| 141 | let cors_results = specs::CorsTests::run_all(&client, &relay_domain).await; | 156 | let cors_results = specs::CorsTests::run_all(&client, &relay_domain).await; |
| 142 | all_results.merge(cors_results); | 157 | all_results.merge(cors_results); |
| 143 | |||
| 144 | // Git clone tests | ||
| 145 | println!(" → Git clone tests..."); | ||
| 146 | let clone_results = specs::GitCloneTests::run_all(&client, &relay_domain).await; | ||
| 147 | all_results.merge(clone_results); | ||
| 148 | |||
| 149 | // Push authorization tests | ||
| 150 | println!(" → Push authorization tests..."); | ||
| 151 | let push_results = specs::PushAuthorizationTests::run_all(&client, &relay_domain).await; | ||
| 152 | all_results.merge(push_results); | ||
| 153 | |||
| 154 | // Repository creation tests | ||
| 155 | println!(" → Repository creation tests..."); | ||
| 156 | let repo_results = specs::RepositoryCreationTests::run_all(&client, &relay_domain).await; | ||
| 157 | all_results.merge(repo_results); | ||
| 158 | 158 | ||
| 159 | println!(); | 159 | println!(); |
| 160 | all_results | 160 | all_results |