test+docs(iace): add handler tests, error-handling tests, JSON export tests, TipTap docs
All checks were successful
CI/CD / go-lint (push) Has been skipped
CI/CD / python-lint (push) Has been skipped
CI/CD / nodejs-lint (push) Has been skipped
CI/CD / test-go-ai-compliance (push) Successful in 38s
CI/CD / test-python-backend-compliance (push) Successful in 34s
CI/CD / test-python-document-crawler (push) Successful in 29s
CI/CD / test-python-dsms-gateway (push) Successful in 20s
CI/CD / validate-canonical-controls (push) Successful in 12s
CI/CD / Deploy (push) Successful in 2s

- Create iace_handler_test.go (22 tests): input validation for InitFromProfile,
  GenerateSingleSection, ExportTechFile, CheckCompleteness, getTenantID,
  CreateProject, ListProjects, Component CRUD handlers
- Add error-handling tests to tech_file_generator_test.go: nil context, nil project,
  empty components/hazards/classifications/evidence, unknown section type,
  all 19 getSystemPrompt types, AI-specific section prompts
- Add JSON export tests to document_export_test.go: valid output, empty project,
  nil project error, special character handling (German text, XML escapes)
- Add iace-hazard-library.md to mkdocs.yml navigation
- Add TipTap Rich-Text-Editor section to iace.md documentation

Total: 181 tests passing (was 165), 0 failures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-16 13:15:31 +01:00
parent 6d2de9b897
commit d2133dbfa2
5 changed files with 779 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ nav:
- DSB Portal: services/sdk-modules/dsb-portal.md
- Industry Compliance Ingestion: services/sdk-modules/industry-compliance-ingestion.md
- IACE (CE-Risikobeurteilung): services/sdk-modules/iace.md
- IACE Hazard Library (150 Gefaehrdungen): services/sdk-modules/iace-hazard-library.md
- Obligations v2 (CP-OBL): services/sdk-modules/obligations.md
- ISMS (ISO 27001): services/sdk-modules/isms.md
- Training Engine (CP-TRAIN): services/sdk-modules/training.md