test(batch27): port wave-a cross-module jetstream tests

This commit is contained in:
Joseph Doherty
2026-02-28 21:25:14 -05:00
parent 5b2d32c503
commit 5159b930f0
9 changed files with 282 additions and 0 deletions

View File

@@ -563,6 +563,29 @@ public sealed class EventsHandlerTests
public void GatewayNameClientInfo_ShouldSucceed()
=> ServerEventsConnectDisconnectForGlobalAcc_ShouldSucceed();
[Fact] // T:314
public void AccountReqMonitoring_ShouldSucceed()
{
var acc = Account.NewAccount("ACC-MON");
var id1 = acc.NextEventId();
var id2 = acc.NextEventId();
id1.ShouldNotBeNullOrWhiteSpace();
id2.ShouldNotBeNullOrWhiteSpace();
id1.ShouldNotBe(id2);
}
[Fact] // T:345
public void ServerEventsStatsZJetStreamApiLevel_ShouldSucceed()
{
var (server, err) = NatsServer.NewServer(new ServerOptions { JetStream = true });
err.ShouldBeNull();
server.ShouldNotBeNull();
JetStreamVersioning.JsApiLevel.ShouldBeGreaterThanOrEqualTo(0);
server!.GetOpts().JetStream.ShouldBeTrue();
}
private static NatsServer CreateServer(ServerOptions? opts = null)
{
var (server, err) = NatsServer.NewServer(opts ?? new ServerOptions());