Files
opengenesislinkserver/tools/ci/OglApprovedViewerRegression/Program.cs
T
OpenGenesis (MPL 2.0) 851dd14289 fix(gen1): allow Radegast-ng, handle NexBus shutdown safely, add opt-in wolfvoice adapter (#334)
* fix(gen1): allow Radegast-ng and Radegast channel aliases under existing viewer policy

* fix(gen1): allow Radegast-ng and Radegast channel aliases under existing viewer policy

* fix(gen1): allow Radegast-ng and Radegast channel aliases under existing viewer policy

* fix(gen1): return HTTP 503 for NexBus requests racing disposed NodeAgent on shutdown

* docs(gen1): include Radegast-ng in access policy and rejection messages

* docs(gen1): include Radegast-ng in access policy and rejection messages

* docs(gen1): include Radegast-ng in access policy and rejection messages

* feat(gen1): reproducible opt-in build of pinned Wolfvoice WebRTC region addon

* feat(gen1): optional Wolfvoice region configuration with TLS, key, and CAPS-conflict preflight

* docs(gen1): Wolfvoice 0.2.0 integration, upstream hard dependency and safe opt-in procedure

* chore(gen1): avoid accidentally vendoring fetched Wolfvoice addon sources

* test(gen1): verify NexBus shutdown, Radegast-ng and Wolfvoice opt-in safety

* test(gen1): verify NexBus shutdown, Radegast-ng and Wolfvoice opt-in safety

* ci(gen1): enforce Radegast-ng, NodeAgent shutdown and optional Wolfvoice integration contracts

* ci(gen1): independently build pinned Wolfvoice region addon against NexVerse and validate opt-in config

* test(gen1): scope shutdown exception-handler ordering to Receive branch
2026-10-28 18:02:52 +01:00

60 lines
2.5 KiB
C#

using System;
using OpenSim.Framework;
internal static class Program
{
private static int m_Count;
private static void Check(string viewer, string channel, bool expected)
{
bool actual = OglApprovedViewerPolicy.IsAllowed(viewer, channel);
if (actual != expected)
throw new Exception("Viewer admission regression: viewer='" + viewer +
"', channel='" + channel + "', expected=" + expected +
", actual=" + actual);
m_Count++;
}
public static void Main()
{
// Firestorm version/channel reporting used by local and HG login.
Check("Firestorm-Release 7.1.0", "Firestorm-Releasex64", true);
Check("7.1.0.12345", "Firestorm-Releasex64", true);
Check("Firestorm-Release HG CI", "Firestorm-Releasex64", true);
Check("Firestorm", "", true);
Check("OpenGenesisLINK Viewer 1.0", "OpenGenesisLINK-Release", true);
Check("1.0.0.1", "OpenGenesisLINK", true);
Check("OGL Viewer 1.0", "OGL Viewer", true);
Check("1.0.0", "OGL Viewer-Release", true);
Check("OpenGenesisLINK-Release", null, true);
// Radegast-ng reports its channel in different forms across builds.
Check("Radegast-ng 2.3", "Radegast-ng", true);
Check("Radegast-ng", "", true);
Check("2.3.0", "Radegast-ng", true);
Check("Radegast 2.3", "Radegast", true);
Check("2.3.0", "Radegast", true);
Check("Radegast-ng-malice", "Hydrastorm", false);
// Denials: explicit known Copybot labels and every other viewer family.
Check("Darkstorm 2.0", "Darkstorm", false);
Check("Hydrastorm 1.0", "Hydrastorm", false);
Check("DarkStorm-Release", "Firestorm-Releasex64", false);
Check("7.1.0", "Hydrastorm", false);
Check("Firestorm-Release Darkstorm", "Firestorm-Releasex64", false);
Check("Firestorm-copybot", "Firestorm-Releasex64", false);
Check("FirestormFake", "", false);
Check("Hydrastorm", "Firestorm-Releasex64", false);
Check("Cool VL Viewer 1.0", "Cool VL Viewer", false);
Check("Singularity 1.0", "Singularity", false);
Check("Alchemy 1.0", "Alchemy", false);
Check("Unknown", "Unknown", false);
Check("", "", false);
Check(null, null, false);
Check("Firestorm-Release", "OtherViewer", false);
Check("NotFirestorm 7", "NotFirestorm", false);
Console.WriteLine("OGL approved viewer admission: " + m_Count + " regression cases passed");
}
}