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/repository_creation.rs | |
| parent | 0c1d60a2ad69e79e83d36ed8a001743fde3d6666 (diff) | |
grasp-audit run all tests in audit mode
Diffstat (limited to 'grasp-audit/src/specs/grasp01/repository_creation.rs')
| -rw-r--r-- | grasp-audit/src/specs/grasp01/repository_creation.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/grasp-audit/src/specs/grasp01/repository_creation.rs b/grasp-audit/src/specs/grasp01/repository_creation.rs index 31ef400..2eaf32f 100644 --- a/grasp-audit/src/specs/grasp01/repository_creation.rs +++ b/grasp-audit/src/specs/grasp01/repository_creation.rs | |||
| @@ -24,6 +24,20 @@ use std::path::Path; | |||
| 24 | pub struct RepositoryCreationTests; | 24 | pub struct RepositoryCreationTests; |
| 25 | 25 | ||
| 26 | impl RepositoryCreationTests { | 26 | impl RepositoryCreationTests { |
| 27 | /// Run all repository creation tests | ||
| 28 | pub async fn run_all( | ||
| 29 | client: &AuditClient, | ||
| 30 | git_data_dir: &Path, | ||
| 31 | ) -> crate::AuditResult { | ||
| 32 | let mut results = crate::AuditResult::new("GRASP-01 Repository Creation Tests"); | ||
| 33 | |||
| 34 | results.add(Self::test_bare_repo_created_on_announcement(client, git_data_dir).await); | ||
| 35 | results.add(Self::test_repo_creation_idempotent(client, git_data_dir).await); | ||
| 36 | results.add(Self::test_bare_repo_structure(client, git_data_dir).await); | ||
| 37 | |||
| 38 | results | ||
| 39 | } | ||
| 40 | |||
| 27 | /// Test that a bare repository is created when a valid announcement is accepted | 41 | /// Test that a bare repository is created when a valid announcement is accepted |
| 28 | /// | 42 | /// |
| 29 | /// This test: | 43 | /// This test: |