Deliver portable native Architecture B deployment and final verification

This commit is contained in:
Steffen committed 2026-10-14 16:32:20 +02:00
1 parent f451b55de1
commit 36740d2492
92 files changed
+10939 -926

No files matched your search

@@ -2,18 +2,19 @@ using HealthApp.Observations.Persistence;
using Microsoft.EntityFrameworkCore;
using Npgsql;
namespace Observation.AcceptanceTests;
public sealed class ObservationApiFixture : PatientProfile.AcceptanceTests.PatientApiFixture
{
private string? healthyConnection;
public string ObservationConnectionString=>ConnectionString;
internal ObservationDbContext CreateObservationDbContext()=>new(new DbContextOptionsBuilder<ObservationDbContext>().UseNpgsql(ConnectionString).Options);
public async Task StopPatientServiceAsync(){healthyConnection=RuntimeConnectionString;RuntimeConnectionString=new NpgsqlConnectionStringBuilder(RuntimeConnectionString){Host="127.0.0.1",Port=1,Timeout=1}.ConnectionString;await base.RestartHostsAsync();}
public Task StopObservationServiceAsync()=>StopPatientServiceAsync();
public Task StopInsightsServiceAsync()=>StopPatientServiceAsync();
public Task StopOverviewServiceAsync()=>StopPatientServiceAsync();
public override async Task RestartHostsAsync(){if(healthyConnection is not null){RuntimeConnectionString=healthyConnection;healthyConnection=null;}await base.RestartHostsAsync();}
public HttpClient CreateDirectPatientClient()=>new(){BaseAddress=RawClient.BaseAddress};
public HttpClient CreateDirectObservationClient()=>CreateDirectPatientClient();
public HttpClient CreateDirectInsightsClient()=>CreateDirectPatientClient();
public HttpClient CreateDirectOverviewClient()=>CreateDirectPatientClient();
private string? healthyConnection;
public string ObservationConnectionString => ConnectionString;
internal ObservationDbContext CreateObservationDbContext() => new(new DbContextOptionsBuilder<ObservationDbContext>().UseNpgsql(ConnectionString).Options);
public async Task StopPatientServiceAsync() { healthyConnection = RuntimeConnectionString; RuntimeConnectionString = new NpgsqlConnectionStringBuilder(RuntimeConnectionString) { Host = "127.0.0.1", Port = 1, Timeout = 1 }.ConnectionString; await base.RestartHostsAsync(); }
public Task StopObservationServiceAsync() => StopPatientServiceAsync();
public Task StopInsightsServiceAsync() => StopPatientServiceAsync();
public Task StopOverviewServiceAsync() => StopPatientServiceAsync();
public override async Task RestartHostsAsync() { if (healthyConnection is not null) { RuntimeConnectionString = healthyConnection; healthyConnection = null; } await base.RestartHostsAsync(); }
public HttpClient CreateDirectPatientClient() => new() { BaseAddress = RawClient.BaseAddress };
public HttpClient CreateDirectObservationClient() => CreateDirectPatientClient();
public HttpClient CreateDirectInsightsClient() => CreateDirectPatientClient();
public HttpClient CreateDirectOverviewClient() => CreateDirectPatientClient();
}