feat(mqtt): port 9 MQTT cluster tests from Go to .NET integration tests

Add MqttClusterTests.cs with 8 cluster tests (T:2215-2224) and relocate
T:2225 from ImplBacklog stub. All tests deferred (require running cluster).
This commit is contained in:
Joseph Doherty
2026-03-01 19:11:43 -05:00
parent 8127f6e1cb
commit 28451ad263
3 changed files with 1057 additions and 15 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -8,20 +8,7 @@ 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();
}
// T:2225 moved to IntegrationTests/Mqtt/MqttClusterTests.cs
[Fact] // T:2178
public void MQTTTLS_ShouldSucceed()

View File

@@ -1,6 +1,6 @@
# NATS .NET Porting Status Report
Generated: 2026-03-01 21:15:21 UTC
Generated: 2026-03-02 00:11:44 UTC
## Modules (12 total)