Files
ss-tools/specs/023-clean-repo-enterprise/tests/README.md
2026-03-27 21:27:31 +03:00

27 lines
1.7 KiB
Markdown

# [DEF:specs.023-clean-repo-enterprise.tests.README:Module]
# @COMPLEXITY: 1
# @PURPOSE: Test Strategy and coverage matrices for Clean Repository Enterprise Profile.
# [/DEF:specs.023-clean-repo-enterprise.tests.README:Module]
# Test Strategy: Clean Repository Enterprise Profile
## Overview
This directory contains strategy, coverage matrices, and execution reports for testing the `clean-release` subsystem, ensuring 100% compliance with GRACE-Poly semantic standards and enterprise deployment isolation policies.
## Mandate
- **CRITICAL Modules**: Strictly enforce `@TEST_CONTRACT` coherence, verifying that all defined `@TEST_FIXTURE`, `@TEST_EDGE`, and `@TEST_INVARIANT` definitions map directly to semantic tests.
- **STANDARD Modules**: Validate expected inputs, outputs, and edge cases (e.g., manifest hashes, source isolation algorithms).
- **No Degradation**: Tests must never be deleted; regression implies an invariant violation.
## Scope
1. `policy_engine.py` (CRITICAL): Deterministic policy evaluations for artifacts and resource registries.
2. `compliance_orchestrator.py` (CRITICAL): State-machine enforcing mandatory execution of `DATA_PURITY`, `MANIFEST_CONSISTENCY`, `INTERNAL_SOURCES_ONLY`, and `NO_EXTERNAL_ENDPOINTS`.
3. `report_builder.py` (CRITICAL): Integrity validation for compliance counters and operator summaries.
4. Additional subsystems: `manifest_builder.py`, `source_isolation.py`, and `api/routes/clean_release.py`.
## Execution
Run testing via Pytest targeting backend test modules:
```bash
cd backend && .venv/bin/python3 -m pytest tests/services/clean_release src/api/routes/__tests__/test_clean_release_api.py src/api/routes/__tests__/test_clean_release_source_policy.py -v
```