diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 01:44:58 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-28 01:44:58 +0000 |
| commit | f053827e0a157f348d9cf834f026a8de322abfe2 (patch) | |
| tree | 4dcde0f1e92dfe26fde131ef0f3f35e677e56b5b /grasp-audit/src/specs/grasp01/git_clone.rs | |
| parent | 0c1d60a2ad69e79e83d36ed8a001743fde3d6666 (diff) | |
grasp-audit run all tests in audit mode
Diffstat (limited to 'grasp-audit/src/specs/grasp01/git_clone.rs')
| -rw-r--r-- | grasp-audit/src/specs/grasp01/git_clone.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/grasp-audit/src/specs/grasp01/git_clone.rs b/grasp-audit/src/specs/grasp01/git_clone.rs index da60f26..8c91c04 100644 --- a/grasp-audit/src/specs/grasp01/git_clone.rs +++ b/grasp-audit/src/specs/grasp01/git_clone.rs | |||
| @@ -24,6 +24,20 @@ use std::process::Command; | |||
| 24 | pub struct GitCloneTests; | 24 | pub struct GitCloneTests; |
| 25 | 25 | ||
| 26 | impl GitCloneTests { | 26 | impl GitCloneTests { |
| 27 | /// Run all Git clone tests | ||
| 28 | pub async fn run_all( | ||
| 29 | client: &AuditClient, | ||
| 30 | git_data_dir: &Path, | ||
| 31 | relay_domain: &str, | ||
| 32 | ) -> crate::AuditResult { | ||
| 33 | let mut results = crate::AuditResult::new("GRASP-01 Git Clone Tests"); | ||
| 34 | |||
| 35 | results.add(Self::test_basic_git_clone(client, git_data_dir, relay_domain).await); | ||
| 36 | results.add(Self::test_clone_url_format(client, git_data_dir, relay_domain).await); | ||
| 37 | |||
| 38 | results | ||
| 39 | } | ||
| 40 | |||
| 27 | /// Test that a repository can be cloned via Git HTTP backend | 41 | /// Test that a repository can be cloned via Git HTTP backend |
| 28 | /// | 42 | /// |
| 29 | /// This test: | 43 | /// This test: |