feat(batch10): task3 implement ocsp cache core stats and compression
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user