tests fixes and some product advisories tunes ups

This commit is contained in:
master
2026-01-30 07:57:43 +02:00
parent 644887997c
commit 55744f6a39
345 changed files with 26290 additions and 2267 deletions

View File

@@ -354,12 +354,21 @@ namespace StellaOps.Concelier.InMemoryRunner
{
public sealed class InMemoryDbRunner : IDisposable
{
/// <summary>
/// Default PostgreSQL connection string for test database.
/// </summary>
private const string DefaultPostgresDsn = "Host=localhost;Port=5432;Database=concelier_test;Username=postgres;Password=postgres";
public string ConnectionString { get; }
public string DataDirectory { get; } = string.Empty;
private InMemoryDbRunner(string connectionString) => ConnectionString = connectionString;
public static InMemoryDbRunner Start(bool singleNodeReplSet = false) => new("inmemory://localhost/fake");
/// <summary>
/// Starts the database runner with a valid PostgreSQL connection string.
/// The tests expect a PostgreSQL database to be running on localhost:5432.
/// </summary>
public static InMemoryDbRunner Start(bool singleNodeReplSet = false) => new(DefaultPostgresDsn);
public void Dispose()
{