18 lines
568 B
C#
18 lines
568 B
C#
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();
|
|
}
|
|
}
|