feat(notif-outbox): add SourceNode to Notification entity + NotificationSubmit

This commit is contained in:
Joseph Doherty
2026-05-23 15:46:30 -04:00
parent ad625eb36d
commit 354f8792bf
4 changed files with 60 additions and 1 deletions

View File

@@ -51,6 +51,20 @@ public class NotificationEntityTests
Assert.Equal(parentExecutionId, n.OriginParentExecutionId);
}
[Fact]
public void SourceNode_DefaultsToNull_AndIsSettable()
{
// SourceNode identifies the cluster node that emitted the notification
// (site node-a/node-b or central-a/central-b). Additive nullable
// property — defaults to null on rows submitted before the column
// existed, and round-trips its value when set.
var n = new Notification("id-1", NotificationType.Email, "ops-team", "subj", "body", "SiteA");
Assert.Null(n.SourceNode);
n.SourceNode = "node-a";
Assert.Equal("node-a", n.SourceNode);
}
[Fact]
public void Constructor_NullArguments_Throw()
{