audit work, fixed StellaOps.sln warnings/errors, fixed tests, sprints work, new advisories
This commit is contained in:
@@ -101,9 +101,9 @@ public sealed class ScannerNegativeTests : IClassFixture<ScannerApplicationFacto
|
||||
/// Verifies that wrong HTTP method returns 405.
|
||||
/// </summary>
|
||||
[Theory]
|
||||
[InlineData("DELETE", "/api/v1/health")]
|
||||
[InlineData("PUT", "/api/v1/health")]
|
||||
[InlineData("PATCH", "/api/v1/health")]
|
||||
[InlineData("DELETE", "/healthz")]
|
||||
[InlineData("PUT", "/healthz")]
|
||||
[InlineData("PATCH", "/healthz")]
|
||||
public async Task WrongMethod_Returns405(string method, string endpoint)
|
||||
{
|
||||
using var client = _factory.CreateClient();
|
||||
@@ -212,7 +212,6 @@ public sealed class ScannerNegativeTests : IClassFixture<ScannerApplicationFacto
|
||||
[Theory]
|
||||
[InlineData("/api/v1/scans/not-a-guid")]
|
||||
[InlineData("/api/v1/scans/12345")]
|
||||
[InlineData("/api/v1/scans/")]
|
||||
public async Task Get_WithInvalidGuid_Returns400Or404(string endpoint)
|
||||
{
|
||||
using var client = _factory.CreateClient();
|
||||
@@ -255,7 +254,7 @@ public sealed class ScannerNegativeTests : IClassFixture<ScannerApplicationFacto
|
||||
using var client = _factory.CreateClient();
|
||||
|
||||
var tasks = Enumerable.Range(0, 100)
|
||||
.Select(_ => client.GetAsync("/api/v1/health", TestContext.Current.CancellationToken));
|
||||
.Select(_ => client.GetAsync("/healthz", TestContext.Current.CancellationToken));
|
||||
|
||||
var responses = await Task.WhenAll(tasks);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user