Test Postgres database definition
This commit is contained in:
@@ -47,10 +47,10 @@ public class ProviderSpecificQueryShould
|
||||
.AddUserSecrets<ProviderSpecificQueryShould>(optional: true)
|
||||
.Build();
|
||||
|
||||
var productionConnectionString = configuration.GetConnectionString("EventDB-Test");
|
||||
var productionConnectionString = configuration.GetConnectionString("EventsPostgres");
|
||||
Assert.False(
|
||||
string.IsNullOrWhiteSpace(productionConnectionString),
|
||||
"The EventDB-Test connection string must be available so the PostgreSQL-backed provider test can connect to the PostgreSQL copy.");
|
||||
"The EventsPostgres connection string must be available so the PostgreSQL-backed provider test can connect to the PostgreSQL copy.");
|
||||
|
||||
var connectionStringBuilder = new NpgsqlConnectionStringBuilder(productionConnectionString)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"EventDB-Test": "Host=localhost;Port=5433;Database=events;Username=sport;Persist Security Info=True;"
|
||||
"EventsPostgres": "Host=localhost;Port=5433;Database=events;Username=sport;Persist Security Info=True;"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user