Carry delegated Eve invocation identity

This commit is contained in:
Meta Vens 2026-08-19 04:31:55 +02:00
commit 3ede0799ab
11 changed files with 136 additions and 6 deletions

View file

@ -106,6 +106,22 @@ public sealed class EveSurfaceSerializationCompatibilityTests
Assert.That(EveCommandInvocationHash.Compute(same), Is.EqualTo(EveCommandInvocationHash.Compute(request)));
Assert.That(EveCommandInvocationHash.Compute(changedPayload), Is.Not.EqualTo(EveCommandInvocationHash.Compute(request)));
var delegated = new EveSurfaceCommandRequest(
request.Schema,
request.ProviderId,
request.SurfaceId,
request.OperationRecord,
new Dictionary<string, string>(request.PayloadFields, StringComparer.Ordinal),
request.IssuedAt,
"progression-router",
request.CommandBoundary,
request.ReceiptSchema,
new EveCommandDelegationRecord(
EveCommandInvocationHash.Compute(request),
request.ClientId,
"progression-router"));
Assert.That(EveCommandInvocationHash.Compute(delegated), Is.Not.EqualTo(EveCommandInvocationHash.Compute(request)));
Assert.That(delegated.Delegation!.OriginalInvocationHash, Is.EqualTo(EveCommandInvocationHash.Compute(request)));
}
[Test]