test(batch25): port gateway connect and tls baseline tests

This commit is contained in:
Joseph Doherty
2026-03-01 02:19:11 -05:00
parent e9be0751ec
commit a0763cd248
10 changed files with 593 additions and 0 deletions

View File

@@ -45,4 +45,36 @@ public sealed class JetStreamSuperClusterTests
updates.AddOrUpdateConsumer(consumer);
updates.UpdateConsumers["ACC:ORDERS"].ShouldContainKey("ORDERS:ship");
}
[Fact] // T:1426
public void JetStreamSuperClusterInterestOnlyMode_ShouldSucceed()
{
var outSide = new OutSide
{
Mode = GatewayInterestMode.Transitioning,
Ni = new HashSet<string>(StringComparer.Ordinal) { "foo" },
};
outSide.AcquireWriteLock();
try
{
outSide.Ni = null;
outSide.Mode = GatewayInterestMode.InterestOnly;
}
finally
{
outSide.ReleaseWriteLock();
}
outSide.AcquireReadLock();
try
{
outSide.Mode.ShouldBe(GatewayInterestMode.InterestOnly);
outSide.Ni.ShouldBeNull();
}
finally
{
outSide.ReleaseReadLock();
}
}
}