Add sample proof bundle configurations and verification script
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Console CI / console-ci (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
VEX Proof Bundles / verify-bundles (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Console CI / console-ci (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
VEX Proof Bundles / verify-bundles (push) Has been cancelled
- Introduced sample proof bundle configuration files for testing, including `sample-proof-bundle-config.dsse.json`, `sample-proof-bundle.dsse.json`, and `sample-proof-bundle.json`. - Implemented a verification script `test_verify_sample.sh` to validate proof bundles against specified schemas and catalogs. - Updated existing proof bundle configurations with new metadata, including versioning, created timestamps, and justification details. - Enhanced evidence entries with expiration dates and hashes for better integrity checks. - Ensured all new configurations adhere to the defined schema for consistency and reliability in testing.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
using StellaOps.Policy.Engine.ConsoleSurface;
|
||||
using StellaOps.Policy.Engine.Simulation;
|
||||
using Xunit;
|
||||
@@ -28,7 +29,10 @@ public sealed class ConsoleSimulationDiffServiceTests
|
||||
var first = service.Compute(request);
|
||||
var second = service.Compute(request);
|
||||
|
||||
Assert.Equal(first, second); // deterministic
|
||||
// Determinism: same serialized payload across repeated calls.
|
||||
var serializedFirst = JsonSerializer.Serialize(first);
|
||||
var serializedSecond = JsonSerializer.Serialize(second);
|
||||
Assert.Equal(serializedFirst, serializedSecond);
|
||||
Assert.Equal("console-policy-23-001", first.SchemaVersion);
|
||||
Assert.True(first.Summary.After.Total > 0);
|
||||
Assert.True(first.Summary.Before.Total > 0);
|
||||
|
||||
Reference in New Issue
Block a user