feat(site): route RefreshDeploymentCommand to deployment-manager proxy

This commit is contained in:
Joseph Doherty
2026-06-26 13:33:52 -04:00
parent caaa855362
commit 3955cb4f28
2 changed files with 20 additions and 0 deletions
@@ -39,6 +39,21 @@ public class SiteCommunicationActorTests : TestKit
dmProbe.ExpectMsg<DeployInstanceCommand>(msg => msg.DeploymentId == "dep1");
}
[Fact]
public void RefreshDeploymentCommand_ForwardedToDeploymentManager()
{
var dmProbe = CreateTestProbe();
var siteActor = Sys.ActorOf(Props.Create(() =>
new SiteCommunicationActor("site1", _options, dmProbe.Ref)));
var command = new RefreshDeploymentCommand(
"dep1", "inst1", "hash1", "admin", DateTimeOffset.UtcNow,
"https://central/", "tok1");
siteActor.Tell(command);
dmProbe.ExpectMsg<RefreshDeploymentCommand>(msg => msg.DeploymentId == "dep1");
}
[Fact]
public void LifecycleCommands_ForwardedToDeploymentManager()
{