Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -52,13 +52,13 @@ public sealed class EwsVerdictDeterminismTests
|
||||
// Assert - All results should be byte-identical
|
||||
var firstScore = results[0].Score;
|
||||
var firstBucket = results[0].Bucket;
|
||||
var firstDimensions = results[0].Dimensions;
|
||||
var firstBreakdown = results[0].Breakdown;
|
||||
|
||||
results.Should().AllSatisfy(r =>
|
||||
{
|
||||
r.Score.Should().Be(firstScore, "score must be deterministic");
|
||||
r.Bucket.Should().Be(firstBucket, "bucket must be deterministic");
|
||||
r.Dimensions.Should().BeEquivalentTo(firstDimensions, "dimensions must be deterministic");
|
||||
r.Breakdown.Should().BeEquivalentTo(firstBreakdown, "breakdown must be deterministic");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -155,16 +155,16 @@ public sealed class EwsVerdictDeterminismTests
|
||||
// Custom policy with different weights
|
||||
var customPolicy = new EvidenceWeightPolicy
|
||||
{
|
||||
PolicyId = "custom-test-policy",
|
||||
Version = "1.0",
|
||||
Version = "ews.v1",
|
||||
Profile = "custom-test-policy",
|
||||
Weights = new EvidenceWeights
|
||||
{
|
||||
Reachability = 0.50, // Much higher weight on reachability
|
||||
Runtime = 0.10,
|
||||
Backport = 0.05,
|
||||
Exploit = 0.20,
|
||||
Source = 0.10,
|
||||
Mitigation = 0.05
|
||||
Rch = 0.50, // Much higher weight on reachability
|
||||
Rts = 0.10,
|
||||
Bkp = 0.05,
|
||||
Xpl = 0.20,
|
||||
Src = 0.10,
|
||||
Mit = 0.05
|
||||
},
|
||||
Buckets = EvidenceWeightPolicy.DefaultProduction.Buckets
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user