Add batch 32 JS cluster meta backlog test mappings

This commit is contained in:
Joseph Doherty
2026-02-28 22:30:41 -05:00
parent 7e8b81b648
commit 34bc4e1137
12 changed files with 616 additions and 0 deletions

View File

@@ -8,6 +8,21 @@ namespace ZB.MOM.NatsNet.Server.Tests.ImplBacklog;
public sealed partial class MqttHandlerTests
{
[Fact] // T:2225
public void MQTTLeafnodeWithoutJSToClusterWithJSNoSharedSysAcc_ShouldSucceed()
{
var cluster = new JetStreamCluster();
var streamAssignment = new StreamAssignment { Config = new StreamConfig { Name = "MQTT" } };
cluster.TrackInflightStreamProposal("SYS", streamAssignment, deleted: false);
cluster.TrackInflightStreamProposal("SYS", streamAssignment, deleted: true);
cluster.InflightStreams["SYS"]["MQTT"].Deleted.ShouldBeTrue();
cluster.RemoveInflightStreamProposal("SYS", "MQTT");
cluster.RemoveInflightStreamProposal("SYS", "MQTT");
cluster.InflightStreams.ContainsKey("SYS").ShouldBeFalse();
}
[Fact] // T:2178
public void MQTTTLS_ShouldSucceed()
{