feat: route publishes to jetstream with puback

This commit is contained in:
Joseph Doherty
2026-02-23 06:03:24 -05:00
parent 5f530de2e4
commit 95691fa9e7
6 changed files with 116 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
namespace NATS.Server.Tests;
public class JetStreamPublishTests
{
[Fact]
public async Task Publish_to_stream_subject_returns_puback()
{
await using var fixture = await JetStreamApiFixture.StartWithStreamAsync("ORDERS", "orders.*");
var ack = await fixture.PublishAndGetAckAsync("orders.created", "{\"id\":1}");
ack.Stream.ShouldBe("ORDERS");
ack.Seq.ShouldBe((ulong)1);
}
}