sprints work
This commit is contained in:
@@ -77,13 +77,13 @@ public class SarifGoldenFixtureTests
|
||||
run.Results.Should().HaveCount(1);
|
||||
var result = run.Results[0];
|
||||
result.RuleId.Should().StartWith("STELLA-");
|
||||
result.Level.Should().Be(SarifLevel.Warning); // High severity maps to warning
|
||||
result.Level.Should().Be(SarifLevel.Error); // High severity maps to error
|
||||
result.Message.Should().NotBeNull();
|
||||
result.Message.Text.Should().Contain("SQL Injection");
|
||||
|
||||
// Location validation
|
||||
result.Locations.Should().NotBeNull();
|
||||
result.Locations.Should().HaveCountGreaterThan(0);
|
||||
result.Locations!.Value.Should().NotBeEmpty();
|
||||
var location = result.Locations!.Value[0];
|
||||
location.PhysicalLocation.Should().NotBeNull();
|
||||
location.PhysicalLocation!.ArtifactLocation.Should().NotBeNull();
|
||||
@@ -93,7 +93,7 @@ public class SarifGoldenFixtureTests
|
||||
|
||||
// Fingerprint validation
|
||||
result.PartialFingerprints.Should().NotBeNull();
|
||||
result.PartialFingerprints.Should().ContainKey("primaryLocationLineHash");
|
||||
result.PartialFingerprints.Should().ContainKey("primaryLocationLineHash/v1");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -118,7 +118,7 @@ public class SarifGoldenFixtureTests
|
||||
|
||||
var results = log.Runs[0].Results;
|
||||
results[0].Level.Should().Be(SarifLevel.Error); // Critical -> Error
|
||||
results[1].Level.Should().Be(SarifLevel.Warning); // High -> Warning
|
||||
results[1].Level.Should().Be(SarifLevel.Error); // High -> Error
|
||||
results[2].Level.Should().Be(SarifLevel.Warning); // Medium -> Warning
|
||||
results[3].Level.Should().Be(SarifLevel.Note); // Low -> Note
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user