batch37 task7 port wave T1 mapped tests and verify statuses

This commit is contained in:
Joseph Doherty
2026-03-01 00:08:35 -05:00
parent a9ccb66e35
commit c466127d09
3 changed files with 192 additions and 4 deletions

View File

@@ -125,10 +125,17 @@ public static class JwtProcessor
var start = today + startTime;
var end = today + endTime;
// If start > end, end is on the next day (overnight range).
// If start > end, this range crosses midnight.
if (startTime > endTime)
{
end = end.AddDays(1);
if (now.TimeOfDay < endTime)
{
start = start.AddDays(-1);
}
else
{
end = end.AddDays(1);
}
}
if (start <= now && now < end)
@@ -225,12 +232,12 @@ public static class JwtProcessor
public static Exception? ValidateTrustedOperators(ServerOptions opts)
{
if (opts.TrustedOperators == null || opts.TrustedOperators.Count == 0)
return null;
return (Exception?)null;
// Full trusted operator JWT validation requires a NATS JWT library.
// Each operator JWT should be decoded and its signing key chain verified.
// For now, we accept any non-empty operator list and validate at connect time.
return null;
return (Exception?)null;
}
}