feat: add jetstream stream lifecycle api
This commit is contained in:
15
tests/NATS.Server.Tests/JetStreamStreamApiTests.cs
Normal file
15
tests/NATS.Server.Tests/JetStreamStreamApiTests.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace NATS.Server.Tests;
|
||||
|
||||
public class JetStreamStreamApiTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task Stream_create_and_info_roundtrip()
|
||||
{
|
||||
var create = await JetStreamApiFixture.RequestAsync("$JS.API.STREAM.CREATE.ORDERS", "{\"name\":\"ORDERS\",\"subjects\":[\"orders.*\"]}");
|
||||
create.Error.ShouldBeNull();
|
||||
|
||||
var info = await JetStreamApiFixture.RequestAsync("$JS.API.STREAM.INFO.ORDERS", "{}");
|
||||
info.Error.ShouldBeNull();
|
||||
info.StreamInfo!.Config.Name.ShouldBe("ORDERS");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user