using NATS.Server.TestUtilities;

namespace NATS.Server.JetStream.Tests;

public class JetStreamStorageSelectionTests
{
    [Fact]
    public async Task Stream_with_storage_file_uses_filestore_backend()
    {
        await using var fx = await JetStreamApiFixture.StartWithStreamJsonAsync("{\"name\":\"S\",\"subjects\":[\"s.*\"],\"storage\":\"file\"}");
        (await fx.GetStreamBackendTypeAsync("S")).ShouldBe("file");
    }
}
