feat(batch10): task3 implement ocsp cache core stats and compression

This commit is contained in:
Joseph Doherty
2026-02-28 12:59:26 -05:00
parent 4b2875141c
commit 98cf350383
7 changed files with 534 additions and 64 deletions

View File

@@ -0,0 +1,18 @@
using Shouldly;
using ZB.MOM.NatsNet.Server;
namespace ZB.MOM.NatsNet.Server.Tests.Auth;
public sealed class OcspResponseCacheParserTests
{
[Fact]
public void NewOCSPResponseCacheConfig_Defaults_ReturnExpectedValues()
{
var config = OcspHandler.NewOCSPResponseCacheConfig();
config.Type.ShouldBe("local");
config.LocalStore.ShouldBe("_rc_");
config.PreserveRevoked.ShouldBeFalse();
config.SaveInterval.ShouldBe(TimeSpan.FromMinutes(5).TotalSeconds);
}
}