Move 225 JetStream-related test files from NATS.Server.Tests into a dedicated NATS.Server.JetStream.Tests project. This includes root-level JetStream*.cs files, storage test files (FileStore, MemStore, StreamStoreContract), and the full JetStream/ subfolder tree (Api, Cluster, Consumers, MirrorSource, Snapshots, Storage, Streams). Updated all namespaces, added InternalsVisibleTo, registered in the solution file, and added the JETSTREAM_INTEGRATION_MATRIX define.
18 lines
482 B
C#
18 lines
482 B
C#
using NATS.Server.JetStream;
|
|
using NATS.Server.JetStream.Api;
|
|
|
|
namespace NATS.Server.JetStream.Tests;
|
|
|
|
public class JetStreamAccountInfoApiTests
|
|
{
|
|
[Fact]
|
|
public void Account_info_returns_jetstream_limits_and_usage_shape()
|
|
{
|
|
var router = new JetStreamApiRouter(new StreamManager(), new ConsumerManager());
|
|
var response = router.Route("$JS.API.INFO", "{}"u8);
|
|
|
|
response.AccountInfo.ShouldNotBeNull();
|
|
response.Error.ShouldBeNull();
|
|
}
|
|
}
|