Fix E2E test gaps and add comprehensive E2E + parity test suites
- Fix pull consumer fetch: send original stream subject in HMSG (not inbox) so NATS client distinguishes data messages from control messages - Fix MaxAge expiry: add background timer in StreamManager for periodic pruning - Fix JetStream wire format: Go-compatible anonymous objects with string enums, proper offset-based pagination for stream/consumer list APIs - Add 42 E2E black-box tests (core messaging, auth, TLS, accounts, JetStream) - Add ~1000 parity tests across all subsystems (gaps closure) - Update gap inventory docs to reflect implementation status
This commit is contained in:
@@ -3,6 +3,27 @@ using NATS.Server.Configuration;
|
||||
using Serilog;
|
||||
using Serilog.Sinks.SystemConsole.Themes;
|
||||
|
||||
static void PrintUsage()
|
||||
{
|
||||
Console.WriteLine("NATS.Server.Host");
|
||||
Console.WriteLine("Usage: nats-server [options]");
|
||||
Console.WriteLine(" -h, --help Show this help");
|
||||
Console.WriteLine(" -c <file> Config file path");
|
||||
Console.WriteLine(" -p, --port <port> Client listen port");
|
||||
Console.WriteLine(" -a, --addr <host> Client listen host");
|
||||
Console.WriteLine(" -m, --http_port <port> Monitoring HTTP port");
|
||||
Console.WriteLine(" --https_port <port> Monitoring HTTPS port");
|
||||
Console.WriteLine(" -l, --log <file> Log file path");
|
||||
Console.WriteLine(" -D, --debug Enable debug logging");
|
||||
Console.WriteLine(" -V, --trace Enable trace logging");
|
||||
}
|
||||
|
||||
if (args.Any(a => a is "-h" or "--help"))
|
||||
{
|
||||
PrintUsage();
|
||||
return;
|
||||
}
|
||||
|
||||
// First pass: scan args for -c flag to get config file path
|
||||
string? configFile = null;
|
||||
for (int i = 0; i < args.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user