tests fixes and some product advisories tunes ups
This commit is contained in:
@@ -21,9 +21,14 @@ public sealed class ReachGraphTestFactory : WebApplicationFactory<Program>
|
||||
{
|
||||
protected override void ConfigureWebHost(IWebHostBuilder builder)
|
||||
{
|
||||
// Must configure settings BEFORE services are built to avoid connection string exception
|
||||
builder.UseSetting("ConnectionStrings:PostgreSQL", "Host=localhost;Database=reachgraph_test;Username=test;Password=test");
|
||||
builder.UseSetting("ConnectionStrings:Redis", "localhost:6379,abortConnect=false");
|
||||
builder.ConfigureAppConfiguration((_, config) =>
|
||||
{
|
||||
config.AddInMemoryCollection(new Dictionary<string, string?>
|
||||
{
|
||||
["ConnectionStrings:PostgreSQL"] = "Host=localhost;Database=reachgraph_test;Username=test;Password=test",
|
||||
["ConnectionStrings:Redis"] = "localhost:6379,abortConnect=false",
|
||||
});
|
||||
});
|
||||
|
||||
builder.UseEnvironment("Development");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user