Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -15,13 +15,15 @@ namespace StellaOps.Cryptography.Plugin.SmRemote.Tests;
|
||||
|
||||
public class SmRemoteHttpProviderTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task Service_EndToEnd_SignsAndVerifies()
|
||||
{
|
||||
Environment.SetEnvironmentVariable("SM_SOFT_ALLOWED", "1");
|
||||
using var app = new WebApplicationFactory<Program>()
|
||||
.WithWebHostBuilder(_ => { });
|
||||
|
||||
using StellaOps.TestKit;
|
||||
var client = app.CreateClient();
|
||||
var status = await client.GetFromJsonAsync<SmStatusResponse>("/status");
|
||||
status.Should().NotBeNull();
|
||||
@@ -39,7 +41,8 @@ public class SmRemoteHttpProviderTests
|
||||
verify!.Valid.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task SignsAndVerifiesViaHttp()
|
||||
{
|
||||
var handler = new StubHandler();
|
||||
|
||||
Reference in New Issue
Block a user