Frontend gaps fill work. Testing fixes work. Auditing in progress.

This commit is contained in:
StellaOps Bot
2025-12-30 01:22:58 +02:00
parent 1dc4bcbf10
commit 7a5210e2aa
928 changed files with 183942 additions and 3941 deletions

View File

@@ -5,16 +5,16 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<OutputType>Library</OutputType>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<UseAppHost>false</UseAppHost>
<UseAppHost>true</UseAppHost>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../__Libraries/StellaOps.Excititor.Core/StellaOps.Excititor.Core.csproj" />
<ProjectReference Include="../../__Libraries/StellaOps.Excititor.Attestation/StellaOps.Excititor.Attestation.csproj" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio" PrivateAssets="all" />
<ProjectReference Include="../../__Libraries/StellaOps.Excititor.Persistence/StellaOps.Excititor.Persistence.csproj" />
<ProjectReference Include="../../StellaOps.Excititor.WebService/StellaOps.Excititor.WebService.csproj" />
@@ -24,3 +24,5 @@
<Using Include="Xunit" />
</ItemGroup>
</Project>

View File

@@ -29,7 +29,7 @@ public sealed class ExcititorMigrationTests : IAsyncLifetime
{
private PostgreSqlContainer _container = null!;
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
_container = new PostgreSqlBuilder()
.WithImage("postgres:16-alpine")
@@ -41,7 +41,7 @@ public sealed class ExcititorMigrationTests : IAsyncLifetime
await _container.StartAsync();
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _container.DisposeAsync();
}
@@ -296,3 +296,6 @@ public sealed class ExcititorMigrationTests : IAsyncLifetime
return reader.ReadToEnd();
}
}

View File

@@ -52,14 +52,14 @@ public sealed class ExcititorTestKitPostgresFixture : IAsyncLifetime
public TestKitPostgresFixture Fixture => _fixture;
public string ConnectionString => _fixture.ConnectionString;
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
_fixture = new TestKitPostgresFixture();
await _fixture.InitializeAsync();
await _fixture.ApplyMigrationsFromAssemblyAsync(MigrationAssembly, "public", "Migrations");
}
public Task DisposeAsync() => _fixture.DisposeAsync();
public ValueTask DisposeAsync() => _fixture.DisposeAsync();
public Task TruncateAllTablesAsync() => _fixture.TruncateAllTablesAsync();
}
@@ -72,3 +72,6 @@ public sealed class ExcititorTestKitPostgresCollection : ICollectionFixture<Exci
{
public const string Name = "ExcititorTestKitPostgres";
}

View File

@@ -32,7 +32,7 @@ public sealed class PostgresAppendOnlyLinksetStoreTests : IAsyncLifetime
_store = new PostgresAppendOnlyLinksetStore(_dataSource, NullLogger<PostgresAppendOnlyLinksetStore>.Instance);
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -57,7 +57,7 @@ public sealed class PostgresAppendOnlyLinksetStoreTests : IAsyncLifetime
await _fixture.TruncateAllTablesAsync();
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -139,3 +139,6 @@ public sealed class PostgresAppendOnlyLinksetStoreTests : IAsyncLifetime
conflictCount.Should().Be(1);
}
}

View File

@@ -33,7 +33,7 @@ public sealed class PostgresVexAttestationStoreTests : IAsyncLifetime
_store = new PostgresVexAttestationStore(_dataSource, NullLogger<PostgresVexAttestationStore>.Instance);
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -44,7 +44,7 @@ public sealed class PostgresVexAttestationStoreTests : IAsyncLifetime
await _fixture.TruncateAllTablesAsync();
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -203,3 +203,6 @@ public sealed class PostgresVexAttestationStoreTests : IAsyncLifetime
attestedAt ?? DateTimeOffset.UtcNow,
ImmutableDictionary<string, string>.Empty.Add("source", "test"));
}

View File

@@ -35,7 +35,7 @@ public sealed class PostgresVexObservationStoreTests : IAsyncLifetime
_store = new PostgresVexObservationStore(_dataSource, NullLogger<PostgresVexObservationStore>.Instance);
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -46,7 +46,7 @@ public sealed class PostgresVexObservationStoreTests : IAsyncLifetime
await _fixture.TruncateAllTablesAsync();
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -233,3 +233,6 @@ public sealed class PostgresVexObservationStoreTests : IAsyncLifetime
attributes: ImmutableDictionary<string, string>.Empty);
}
}

View File

@@ -31,7 +31,7 @@ public sealed class PostgresVexProviderStoreTests : IAsyncLifetime
_store = new PostgresVexProviderStore(_dataSource, NullLogger<PostgresVexProviderStore>.Instance);
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -42,7 +42,7 @@ public sealed class PostgresVexProviderStoreTests : IAsyncLifetime
await _fixture.TruncateAllTablesAsync();
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -169,3 +169,6 @@ public sealed class PostgresVexProviderStoreTests : IAsyncLifetime
fetched.Trust.Weights.Should().Be(weights);
}
}

View File

@@ -33,7 +33,7 @@ public sealed class PostgresVexTimelineEventStoreTests : IAsyncLifetime
_store = new PostgresVexTimelineEventStore(_dataSource, NullLogger<PostgresVexTimelineEventStore>.Instance);
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -44,7 +44,7 @@ public sealed class PostgresVexTimelineEventStoreTests : IAsyncLifetime
await _fixture.TruncateAllTablesAsync();
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -192,3 +192,6 @@ public sealed class PostgresVexTimelineEventStoreTests : IAsyncLifetime
payloadHash: null,
attributes: ImmutableDictionary<string, string>.Empty);
}

View File

@@ -38,7 +38,7 @@ public sealed class VexQueryDeterminismTests : IAsyncLifetime
_fixture = fixture;
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -74,7 +74,7 @@ public sealed class VexQueryDeterminismTests : IAsyncLifetime
_linksetStore = new PostgresAppendOnlyLinksetStore(_dataSource, NullLogger<PostgresAppendOnlyLinksetStore>.Instance);
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -315,3 +315,6 @@ public sealed class VexQueryDeterminismTests : IAsyncLifetime
counts.Should().AllBeEquivalentTo(0L);
}
}

View File

@@ -38,7 +38,7 @@ public sealed class VexStatementIdempotencyTests : IAsyncLifetime
_fixture = fixture;
}
public async Task InitializeAsync()
public async ValueTask InitializeAsync()
{
await _fixture.Fixture.RunMigrationsFromAssemblyAsync(
typeof(ExcititorDataSource).Assembly,
@@ -74,7 +74,7 @@ public sealed class VexStatementIdempotencyTests : IAsyncLifetime
_linksetStore = new PostgresAppendOnlyLinksetStore(_dataSource, NullLogger<PostgresAppendOnlyLinksetStore>.Instance);
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await _dataSource.DisposeAsync();
}
@@ -253,3 +253,6 @@ public sealed class VexStatementIdempotencyTests : IAsyncLifetime
result2.WasCreated.Should().BeTrue();
}
}

View File

@@ -109,7 +109,7 @@ public sealed class EvidenceLockerEndpointTests : IAsyncLifetime
Assert.Equal("sha256:6a47c31b7b7c3b9a1dbc960669f4674ce088c8fc9d9a4f7e9fcc3f6a81f7b86c", response.Headers.ETag?.Tag?.Trim('"'));
}
public Task InitializeAsync()
public ValueTask InitializeAsync()
{
_stubStore = new StubAirgapImportStore();
_factory = new TestWebApplicationFactory(
@@ -128,10 +128,10 @@ public sealed class EvidenceLockerEndpointTests : IAsyncLifetime
services.AddSingleton<IAirgapImportStore>(_stubStore);
});
return Task.CompletedTask;
return ValueTask.CompletedTask;
}
public Task DisposeAsync()
public ValueTask DisposeAsync()
{
try
{
@@ -143,7 +143,7 @@ public sealed class EvidenceLockerEndpointTests : IAsyncLifetime
}
_factory.Dispose();
return Task.CompletedTask;
return ValueTask.CompletedTask;
}
private sealed class StubAirgapImportStore : IAirgapImportStore
@@ -173,3 +173,6 @@ public sealed class EvidenceLockerEndpointTests : IAsyncLifetime
}
}
}

View File

@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<UseAppHost>false</UseAppHost>
<UseAppHost>true</UseAppHost>
<DisableRazorRuntimeCompilation>true</DisableRazorRuntimeCompilation>
</PropertyGroup>
<ItemGroup>
@@ -37,4 +37,4 @@
<Compile Include="OpenApiDiscoveryEndpointTests.cs" />
<Compile Include="PolicyEndpointsTests.cs" />
</ItemGroup>
</Project>
</Project>