fix tests. new product advisories enhancements
This commit is contained in:
@@ -117,7 +117,7 @@ public class BinaryAnalysisDoctorPluginTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetChecks_ReturnsFourChecks()
|
||||
public void GetChecks_ReturnsSixChecks()
|
||||
{
|
||||
// Arrange
|
||||
var context = CreateContext();
|
||||
@@ -126,7 +126,7 @@ public class BinaryAnalysisDoctorPluginTests
|
||||
var checks = _plugin.GetChecks(context);
|
||||
|
||||
// Assert
|
||||
checks.Should().HaveCount(4);
|
||||
checks.Should().HaveCount(6);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -55,7 +55,7 @@ public class BinaryAnalysisPluginIntegrationTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetChecks_ReturnsFourBinaryAnalysisChecks()
|
||||
public void GetChecks_ReturnsSixBinaryAnalysisChecks()
|
||||
{
|
||||
// Arrange
|
||||
var services = new ServiceCollection();
|
||||
@@ -83,11 +83,13 @@ public class BinaryAnalysisPluginIntegrationTests
|
||||
var checks = plugin.GetChecks(context);
|
||||
|
||||
// Assert
|
||||
checks.Should().HaveCount(4);
|
||||
checks.Should().HaveCount(6);
|
||||
checks.Select(c => c.CheckId).Should().Contain("check.binaryanalysis.debuginfod.available");
|
||||
checks.Select(c => c.CheckId).Should().Contain("check.binaryanalysis.ddeb.enabled");
|
||||
checks.Select(c => c.CheckId).Should().Contain("check.binaryanalysis.buildinfo.cache");
|
||||
checks.Select(c => c.CheckId).Should().Contain("check.binaryanalysis.symbol.recovery.fallback");
|
||||
checks.Select(c => c.CheckId).Should().Contain("check.binaryanalysis.corpus.mirror.freshness");
|
||||
checks.Select(c => c.CheckId).Should().Contain("check.binaryanalysis.corpus.kpi.baseline");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" />
|
||||
<PackageReference Include="Moq" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="xunit" />
|
||||
<PackageReference Include="xunit.runner.visualstudio">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Remove="Integration\CorpusHealthChecksIntegrationTests.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" />
|
||||
<PackageReference Include="Moq" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="coverlet.collector">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\__Plugins\StellaOps.Doctor.Plugin.BinaryAnalysis\StellaOps.Doctor.Plugin.BinaryAnalysis.csproj" />
|
||||
|
||||
Reference in New Issue
Block a user