Files
ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.Communication.Tests/Grpc/NoClusterClientStreamingRegressionTests.cs
T
Joseph Doherty 7b0b9c7365 refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)
Solution + 23 src projects + 26 test projects renamed; folders, csproj,
namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated.
ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated.
SQL roles/logins, LDAP domains, CLI command name, and CLI config dir
(~/.scadalink → ~/.scadabridge) also renamed.

Build green; 5 Host.Tests fail awaiting SQL login rename in next commit.
Pre-existing StaleTagMonitor timing flakes unchanged.

Rename script committed at tools/rename-to-scadabridge.sh.
2026-05-28 09:37:45 -04:00

52 lines
1.9 KiB
C#

using System.Reflection;
using ZB.MOM.WW.ScadaBridge.Communication.Actors;
namespace ZB.MOM.WW.ScadaBridge.Communication.Tests.Grpc;
/// <summary>
/// Regression tests ensuring that the old ClusterClient-based debug streaming
/// path is not reintroduced. Debug streaming now flows through gRPC.
///
/// Note: The DebugStreamEvent type-does-not-exist check lives in
/// ZB.MOM.WW.ScadaBridge.Commons.Tests/ArchitecturalConstraintTests.cs and is not
/// duplicated here.
/// </summary>
public class NoClusterClientStreamingRegressionTests
{
[Fact]
public void CentralCommunicationActor_DoesNotHave_HandleDebugStreamEvent()
{
var type = typeof(CentralCommunicationActor);
var method = type.GetMethod("HandleDebugStreamEvent",
BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
Assert.Null(method);
}
[Fact]
public void SiteCommunicationActor_DoesNotHave_HandleDebugStreamEvent()
{
var type = typeof(SiteCommunicationActor);
var method = type.GetMethod("HandleDebugStreamEvent",
BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
Assert.Null(method);
}
[Fact]
public void CentralCommunicationActor_DoesNotHave_ForwardDebugStreamEvent()
{
var type = typeof(CentralCommunicationActor);
var method = type.GetMethod("ForwardDebugStreamEvent",
BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
Assert.Null(method);
}
[Fact]
public void Communication_Assembly_DoesNotContain_DebugStreamEvent_Type()
{
// DebugStreamEvent should not exist in the Communication assembly either
var assembly = typeof(CentralCommunicationActor).Assembly;
var type = assembly.GetTypes().FirstOrDefault(t => t.Name == "DebugStreamEvent");
Assert.Null(type);
}
}