sprints work

This commit is contained in:
StellaOps Bot
2025-12-25 12:19:12 +02:00
parent 223843f1d1
commit 2a06f780cf
224 changed files with 41796 additions and 1515 deletions

24
tests/fixtures/invalid/README.md vendored Normal file
View File

@@ -0,0 +1,24 @@
# Invalid Fixtures for Negative Testing
This directory contains intentionally invalid SBOM fixtures used for CI negative testing.
These fixtures MUST fail schema validation to ensure the CI pipeline correctly detects errors.
## CycloneDX Invalid Fixtures
| File | Defect | Expected Error |
|------|--------|----------------|
| `cyclonedx-wrong-version.json` | specVersion "2.0" doesn't exist | Invalid enum value for specVersion |
| `cyclonedx-missing-required.json` | Missing required specVersion field | Missing required property: specVersion |
| `cyclonedx-invalid-component.json` | Component missing name and type | Required properties missing in component |
## CI Usage
The schema validation workflow uses the `tests/fixtures/invalid/` directory for negative test cases.
When `--expect-failures` is passed, the CI expects these files to fail validation.
## Adding New Test Cases
1. Create a new JSON file with an intentional schema violation
2. Add a `$comment` field explaining the defect
3. Update this README with the expected error
4. Ensure the file has the correct format marker (e.g., `"bomFormat": "CycloneDX"`)