feat: complete remaining jetstream parity implementation plan
This commit is contained in:
17
tests/NATS.Server.Tests/JetStreamConsumerListApiTests.cs
Normal file
17
tests/NATS.Server.Tests/JetStreamConsumerListApiTests.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace NATS.Server.Tests;
|
||||
|
||||
public class JetStreamConsumerListApiTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task Consumer_names_list_and_delete_are_supported()
|
||||
{
|
||||
await using var fx = await JetStreamApiFixture.StartWithPullConsumerAsync();
|
||||
|
||||
var names = await fx.RequestLocalAsync("$JS.API.CONSUMER.NAMES.ORDERS", "{}");
|
||||
names.ConsumerNames.ShouldNotBeNull();
|
||||
names.ConsumerNames.ShouldContain("PULL");
|
||||
|
||||
var del = await fx.RequestLocalAsync("$JS.API.CONSUMER.DELETE.ORDERS.PULL", "{}");
|
||||
del.Success.ShouldBeTrue();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user