Merge all changes

This commit is contained in:
StellaOps Bot
2026-01-08 08:54:27 +02:00
parent 589de352c2
commit 110591d6bf
381 changed files with 2237 additions and 1939 deletions

View File

@@ -1,4 +1,4 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using StellaOps.Scanner.Analyzers.OS.Windows.Chocolatey;
using Xunit;
@@ -47,7 +47,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.NotNull(result);
@@ -73,7 +73,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.NotNull(result);
@@ -102,7 +102,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);
@@ -144,7 +144,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Equal(3, result.Packages.Count);
@@ -187,7 +187,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);
@@ -225,7 +225,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);
@@ -258,7 +258,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);
@@ -295,7 +295,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);
@@ -344,7 +344,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert - Results should be sorted by PURL
Assert.Equal(3, result.Packages.Count);
@@ -380,7 +380,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert - Only valid package should be returned
Assert.Single(result.Packages);
@@ -409,7 +409,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);
@@ -439,7 +439,7 @@ public class ChocolateyPackageAnalyzerTests
var context = CreateContext(tempDir);
// Act
var result = await _analyzer.AnalyzeAsync(context, CancellationToken.None);
var result = await _analyzer.AnalyzeAsync(context, TestContext.Current.CancellationToken);
// Assert
Assert.Single(result.Packages);