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.
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user