fix(adminui): flip remaining ModbusTcp test seeds + doc comments to Modbus (review)
This commit is contained in:
@@ -277,7 +277,7 @@ public sealed class AdminOperationsActorTests : ControlPlaneActorTestBase
|
||||
/// triggers <c>BadCrossClusterNamespaceBinding</c> and routes to the Rejected branch through
|
||||
/// the actor — no coordinator dispatch, no Deployment row.
|
||||
/// Seeded: Namespace in cluster "MAIN" + DriverInstance in cluster "SITE-A" referencing that
|
||||
/// namespace. NamespaceKind.Equipment + DriverType "ModbusTcp" satisfies the compat rule so
|
||||
/// namespace. NamespaceKind.Equipment + DriverType "Modbus" satisfies the compat rule so
|
||||
/// only the cross-cluster rule fires.</summary>
|
||||
[Fact]
|
||||
public void StartDeployment_rejects_on_cross_cluster_namespace_binding()
|
||||
@@ -300,7 +300,7 @@ public sealed class AdminOperationsActorTests : ControlPlaneActorTestBase
|
||||
ClusterId = "SITE-A",
|
||||
NamespaceId = nsId, // cross-cluster: drv is SITE-A, ns is MAIN
|
||||
Name = "site-a-modbus",
|
||||
DriverType = "ModbusTcp", // compatible with Equipment ns — no compat error
|
||||
DriverType = "Modbus", // compatible with Equipment ns — no compat error
|
||||
DriverConfig = "{}",
|
||||
});
|
||||
db.SaveChanges();
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ public sealed class DriverProbeRegistrationTests
|
||||
// src/Server/.../Components/Pages/Clusters/Drivers/*DriverPage.razor.
|
||||
private static readonly string[] AdminUiDriverTypeKeys =
|
||||
[
|
||||
"ModbusTcp",
|
||||
"Modbus",
|
||||
"AbCip",
|
||||
"AbLegacy",
|
||||
"S7",
|
||||
|
||||
@@ -58,7 +58,7 @@ public sealed class DriverTestConnectE2eTests
|
||||
|
||||
var configJson = $"{{\"Host\":\"{host}\",\"Port\":{port}}}";
|
||||
var correlationId = Guid.NewGuid();
|
||||
var msg = new TestDriverConnect("ModbusTcp", configJson, TimeoutSeconds: 10, correlationId);
|
||||
var msg = new TestDriverConnect("Modbus", configJson, TimeoutSeconds: 10, correlationId);
|
||||
|
||||
var result = await client.AskAsync<TestDriverConnectResult>(msg, Ct);
|
||||
|
||||
@@ -89,7 +89,7 @@ public sealed class DriverTestConnectE2eTests
|
||||
|
||||
var configJson = $"{{\"Host\":\"{host}\",\"Port\":9999}}";
|
||||
var correlationId = Guid.NewGuid();
|
||||
var msg = new TestDriverConnect("ModbusTcp", configJson, TimeoutSeconds: 5, correlationId);
|
||||
var msg = new TestDriverConnect("Modbus", configJson, TimeoutSeconds: 5, correlationId);
|
||||
|
||||
var result = await client.AskAsync<TestDriverConnectResult>(msg, Ct);
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ public sealed class MultiClusterScopingTests
|
||||
ClusterId = clusterId,
|
||||
NamespaceId = namespaceId,
|
||||
Name = driverInstanceId,
|
||||
DriverType = "ModbusTcp",
|
||||
DriverType = "Modbus",
|
||||
Enabled = true,
|
||||
DriverConfig = "{}",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user