forked from Manuel/meeting-assistant
ci: consolidate platform pipelines and test prerequisites on macOS support
This commit is contained in:
1 parent
1b19b08f2e
commit
728e66dd72
76 files changed
+7477
-239
No files matched your search
@@ -11,11 +11,11 @@ using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
|
||||
namespace MeetingAssistant.Tests;
|
||||
|
||||
public sealed class HealthEndpointTests : IClassFixture<WebApplicationFactory<Program>>
|
||||
public sealed class HealthEndpointTests : IClassFixture<IsolatedApplicationFactory>
|
||||
{
|
||||
private readonly WebApplicationFactory<Program> factory;
|
||||
|
||||
public HealthEndpointTests(WebApplicationFactory<Program> factory)
|
||||
public HealthEndpointTests(IsolatedApplicationFactory factory)
|
||||
{
|
||||
this.factory = factory.WithWebHostBuilder(builder =>
|
||||
{
|
||||
@@ -55,6 +55,7 @@ public sealed class HealthEndpointTests : IClassFixture<WebApplicationFactory<Pr
|
||||
Assert.Equal(HostOperatingSystem.DetectCurrent(), first);
|
||||
}
|
||||
|
||||
#if !WINDOWS
|
||||
[Fact]
|
||||
public async Task NeutralBuildReportsSpeakerPlaybackUnavailable()
|
||||
{
|
||||
@@ -65,6 +66,7 @@ public sealed class HealthEndpointTests : IClassFixture<WebApplicationFactory<Pr
|
||||
Assert.Contains("Windows build", result);
|
||||
Assert.DoesNotContain("Queued", result);
|
||||
}
|
||||
#endif
|
||||
|
||||
[Fact]
|
||||
public async Task ApplicationStartupDeletesStaleTemporaryRecordings()
|
||||
@@ -75,6 +77,7 @@ public sealed class HealthEndpointTests : IClassFixture<WebApplicationFactory<Pr
|
||||
{
|
||||
services.RemoveAll<IRecordedAudioStore>();
|
||||
services.AddSingleton<IRecordedAudioStore, StartupCleanupRecordedAudioStore>();
|
||||
services.AddHostedService<TemporaryRecordingCleanupHostedService>();
|
||||
});
|
||||
});
|
||||
using var client = cleanupFactory.CreateClient();
|
||||
|
||||
Reference in new issue
Block a user