test(batch18): port behavioral batch-18 tests

This commit is contained in:
Joseph Doherty
2026-02-28 19:29:19 -05:00
parent 108d06dd57
commit eb05308b5a
4 changed files with 66 additions and 0 deletions

View File

@@ -44,6 +44,25 @@ public sealed class NatsServerTests
result.Error.ShouldBe(ServerErrors.ErrAccountValidation);
}
[Fact] // T:2897
public void InsecureSkipVerifyWarning_ShouldSucceed()
{
var (tlsOptions, parseError) = ServerOptions.ParseTLS(
new Dictionary<string, object?>
{
["insecure"] = true,
},
isClientCtx: true);
parseError.ShouldBeNull();
tlsOptions.ShouldNotBeNull();
tlsOptions!.Insecure.ShouldBeTrue();
var (tlsConfig, tlsError) = ServerOptions.GenTLSConfig(tlsOptions);
tlsError.ShouldBeNull();
tlsConfig.ShouldNotBeNull();
}
[Fact] // T:2886
public void CustomRouterAuthentication_ShouldSucceed()
{