test: preserve server SDK 2.0 value security and history contracts

This commit is contained in:
Joseph Doherty
2026-11-10 10:37:52 -05:00
parent ac5e9d84f0
commit 9cddc9306b
45 changed files with 1215 additions and 641 deletions
@@ -219,13 +219,13 @@ public sealed class NodeManagerWriteRevertTests : IDisposable
clientUserId: "op");
audit.ShouldNotBeNull();
audit.SourceNode.Value.ShouldBe(node.NodeId);
audit.AttributeId.Value.ShouldBe((uint)Attributes.Value);
audit.OldValue.Value.ShouldBe(7);
audit.NewValue.Value.ShouldBe(42);
audit.ClientUserId.Value.ShouldBe("op");
audit.Status.Value.ShouldBeFalse(); // AuditEvent Status = false ⇒ the write failed
audit.Message.Value.Text.ShouldContain("FC06 rejected"); // device Reason carried in the Message
audit.SourceNode!.Value.ShouldBe(node.NodeId);
audit.AttributeId!.Value.ShouldBe((uint)Attributes.Value);
audit.OldValue!.Value.ShouldBe(7);
audit.NewValue!.Value.ShouldBe(42);
audit.ClientUserId!.Value.ShouldBe("op");
audit.Status!.Value.ShouldBeFalse(); // AuditEvent Status = false ⇒ the write failed
audit.Message!.Value.Text!.ShouldContain("FC06 rejected"); // device Reason carried in the Message
await host.DisposeAsync();
}
@@ -247,7 +247,7 @@ public sealed class NodeManagerWriteRevertTests : IDisposable
outcome: new NodeWriteOutcome(false, null),
optimisticValue: 42, priorValue: 7, clientUserId: "op");
audit.Message.Value.Text.ShouldContain("device write rejected");
audit.Message!.Value.Text!.ShouldContain("device write rejected");
await host.DisposeAsync();
}