Fix tests
This commit is contained in:
@@ -10,7 +10,15 @@ public static class ExplainableAlertsTestHelper
|
||||
public static readonly JsonSerializerOptions JsonOptions = new()
|
||||
{
|
||||
PropertyNameCaseInsensitive = true,
|
||||
Converters = { new JsonStringEnumConverter() }
|
||||
Converters =
|
||||
{
|
||||
// Must match API Program.cs converters — AlertType/Severity/Status
|
||||
// serialize as DB strings (e.g. "GCS_CRITICAL"), not enum names.
|
||||
new AlertTypeJsonConverter(),
|
||||
new AlertSeverityJsonConverter(),
|
||||
new AlertStatusJsonConverter(),
|
||||
new JsonStringEnumConverter()
|
||||
}
|
||||
};
|
||||
|
||||
private static readonly DateTimeOffset TrendBaseTime =
|
||||
|
||||
Reference in New Issue
Block a user