tests fixes and some product advisories tunes ups
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user