test(batch57): port 53 SuperCluster and LeafNode integration tests
Ports 36 JetStream super-cluster tests from jetstream_super_cluster_test.go, 3 JetStream leaf-node tests from jetstream_leafnode_test.go, and 14 leaf-node tests from leafnode_test.go into the integration test project. Creates the required harness infrastructure (TestSuperCluster, TestCluster, IntegrationTestBase, CheckHelper, ConfigHelper, NatsTestClient, TestServerHelper). All 53 tests are marked [Fact(Skip = "...")] pending full multi-server cluster runtime.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Copyright 2020-2025 The NATS Authors
|
||||
// Licensed under the Apache License, Version 2.0
|
||||
|
||||
namespace ZB.MOM.NatsNet.Server.IntegrationTests.Helpers;
|
||||
|
||||
/// <summary>
|
||||
/// Helpers for starting individual NATS server instances in integration tests.
|
||||
/// </summary>
|
||||
public static class TestServerHelper
|
||||
{
|
||||
/// <summary>Runs a server with programmatically supplied options.</summary>
|
||||
public static IDisposable RunServer(object opts) =>
|
||||
throw new NotImplementedException("Requires full NatsServer runtime.");
|
||||
|
||||
/// <summary>Runs a server from a config file on disk.</summary>
|
||||
public static IDisposable RunServerWithConfig(string configFilePath) =>
|
||||
throw new NotImplementedException("Requires full NatsServer runtime.");
|
||||
}
|
||||
Reference in New Issue
Block a user