feat(batch5): verify mapped jetstream error tests

This commit is contained in:
Joseph Doherty
2026-02-28 09:15:04 -05:00
parent dc90025a37
commit 0ad5ccaf05
5 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// Copyright 2025 The NATS Authors
// Licensed under the Apache License, Version 2.0
using Shouldly;
using ZB.MOM.NatsNet.Server;
namespace ZB.MOM.NatsNet.Server.Tests.Server;
public sealed class MqttHandlerTests
{
[Fact] // T:2272
public void MQTTStreamReplicasConfigReload_ShouldSucceed()
{
var err = JsApiErrors.NewJSStreamReplicasNotSupportedError();
err.Code.ShouldBe(JsApiErrors.StreamReplicasNotSupported.Code);
err.ErrCode.ShouldBe(JsApiErrors.StreamReplicasNotSupported.ErrCode);
err.Description.ShouldBe("replicas > 1 not supported in non-clustered mode");
}
}