Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -7,7 +7,8 @@ namespace StellaOps.Scanner.WebService.Tests;
|
||||
|
||||
public sealed class CallGraphEndpointsTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task SubmitCallGraphRequiresContentDigestHeader()
|
||||
{
|
||||
using var secrets = new TestSurfaceSecretsScope();
|
||||
@@ -26,7 +27,8 @@ public sealed class CallGraphEndpointsTests
|
||||
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task SubmitCallGraphReturnsAcceptedAndDetectsDuplicates()
|
||||
{
|
||||
using var secrets = new TestSurfaceSecretsScope();
|
||||
@@ -59,6 +61,7 @@ public sealed class CallGraphEndpointsTests
|
||||
{
|
||||
Content = JsonContent.Create(request)
|
||||
};
|
||||
using StellaOps.TestKit;
|
||||
secondRequest.Headers.TryAddWithoutValidation("Content-Digest", "sha256:deadbeef");
|
||||
|
||||
var second = await client.SendAsync(secondRequest);
|
||||
|
||||
Reference in New Issue
Block a user