fix(test): correct connection string name and cache directory path
This commit is contained in:
@@ -29,11 +29,11 @@ public class BranchDevEtlTests : IAsyncLifetime
|
|||||||
.AddEnvironmentVariables()
|
.AddEnvironmentVariables()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
_connectionString = config.GetConnectionString("LotFinder")
|
_connectionString = config.GetConnectionString("LotFinderDB")
|
||||||
?? throw new InvalidOperationException("LotFinder connection string not configured.");
|
?? throw new InvalidOperationException("LotFinderDB connection string not configured.");
|
||||||
|
|
||||||
_cacheDirectory = config["DevEtl:CacheDirectory"]
|
_cacheDirectory = config["DevEtl:CacheDirectory"]
|
||||||
?? "/Users/dohertj2/Desktop/JdeScopingTool/CACHED_DB_FILES";
|
?? Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "..", "..", "CACHED_DB_FILES");
|
||||||
|
|
||||||
_connectionFactory = new DbConnectionFactory(config, NullLogger<DbConnectionFactory>.Instance);
|
_connectionFactory = new DbConnectionFactory(config, NullLogger<DbConnectionFactory>.Instance);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"LotFinder": "Server=localhost,1434;Database=ScopingTool;User Id=scopingapp;Password=Sc0ping@pp_Dev#2024;TrustServerCertificate=true"
|
"LotFinderDB": "Server=localhost,1434;Database=ScopingTool;User Id=scopingapp;Password=Sc0ping@pp_Dev#2024;TrustServerCertificate=true"
|
||||||
},
|
},
|
||||||
"DevEtl": {
|
"DevEtl": {
|
||||||
"CacheDirectory": "/Users/dohertj2/Desktop/JdeScopingTool/CACHED_DB_FILES"
|
"CacheDirectory": "/Users/dohertj2/Desktop/JdeScopingTool/CACHED_DB_FILES"
|
||||||
|
|||||||
Reference in New Issue
Block a user