- Rename tests/NATS.Server.Tests -> tests/NATS.Server.Core.Tests - Update solution file, InternalsVisibleTo, and csproj references - Remove JETSTREAM_INTEGRATION_MATRIX and NATS.NKeys from csproj (moved to JetStream.Tests and Auth.Tests) - Update all namespaces from NATS.Server.Tests.* to NATS.Server.Core.Tests.* - Replace private GetFreePort/ReadUntilAsync helpers with TestUtilities calls - Fix stale namespace in Transport.Tests/NetworkingGoParityTests.cs
15 lines
395 B
C#
15 lines
395 B
C#
using NATS.Server.Protocol;
|
|
|
|
namespace NATS.Server.Core.Tests;
|
|
|
|
public class InterServerOpcodeRoutingTests
|
|
{
|
|
[Fact]
|
|
public void Parser_dispatch_rejects_Aplus_for_client_kind_client_but_allows_for_gateway()
|
|
{
|
|
var m = new ClientCommandMatrix();
|
|
m.IsAllowed(ClientKind.Client, "A+").ShouldBeFalse();
|
|
m.IsAllowed(ClientKind.Gateway, "A+").ShouldBeTrue();
|
|
}
|
|
}
|