1.9 KiB
1.9 KiB
Golden Set for Patch Validation (in BinaryIndex)
Module
BinaryIndex
Status
IMPLEMENTED
Description
Golden set analysis pipeline and API controller for curated binary patch validation test cases.
Implementation Details
- Modules:
src/BinaryIndex/__Libraries/StellaOps.BinaryIndex.Analysis/,src/BinaryIndex/StellaOps.BinaryIndex.WebService/Controllers/ - Key Classes:
GoldenSetAnalysisPipeline(src/BinaryIndex/__Libraries/StellaOps.BinaryIndex.Analysis/GoldenSetAnalysisPipeline.cs) - runs validation analysis against golden set definitionsGoldenSetController(src/BinaryIndex/StellaOps.BinaryIndex.WebService/Controllers/GoldenSetController.cs) - REST API for golden set CRUD operations with filtering, pagination, and orderingPOST /api/v1/golden-sets- create golden set definitionsGET /api/v1/golden-sets- list with status/component/tag filtersGET /api/v1/golden-sets/{id}- get by ID
GoldenSetValidator(src/BinaryIndex/__Libraries/StellaOps.BinaryIndex.GoldenSet/Validation/GoldenSetValidator.cs) - validates golden set definitions
- Interfaces:
IGoldenSetStore,IGoldenSetValidator - Models:
GoldenSetDefinition,GoldenSetListQuery,GoldenSetListResponse,GoldenSetCreateRequest/Response - Enums:
GoldenSetStatus(Draft, Active, etc.),GoldenSetOrderBy
E2E Test Plan
- Create a golden set via
POST /api/v1/golden-setsand verify it is stored with Draft status - List golden sets with component filter and verify only matching sets are returned
- Get golden set by ID and verify all fields including metadata are returned
- Run golden set analysis pipeline against a known binary pair and verify patch validation result
- Verify golden set validation rejects definitions with invalid CVE references
- Verify pagination and ordering work correctly with multiple golden sets