fix tests. new product advisories enhancements
This commit is contained in:
@@ -19,9 +19,11 @@ internal static class NotifyWebServiceOptionsValidator
|
||||
ArgumentNullException.ThrowIfNull(storage);
|
||||
|
||||
var driver = storage.Driver ?? string.Empty;
|
||||
if (!string.Equals(driver, "postgres", StringComparison.OrdinalIgnoreCase))
|
||||
// Allow 'memory' driver for testing purposes, 'postgres' for production
|
||||
var allowedDrivers = new[] { "postgres", "memory" };
|
||||
if (!allowedDrivers.Any(d => string.Equals(d, driver, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
throw new InvalidOperationException($"Unsupported storage driver '{storage.Driver}'. Only 'postgres' is supported after cutover.");
|
||||
throw new InvalidOperationException($"Unsupported storage driver '{storage.Driver}'. Supported drivers: {string.Join(", ", allowedDrivers)}.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user