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:
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user