test(grpc-data): A2a — unit-phase manifest key A2; probe carries history,conditions; metadata never carries AlarmSubscribe
This commit is contained in:
+4
-4
@@ -52,10 +52,10 @@ public sealed class GrpcDataFeatureHeaderClientTests
|
||||
handler.Paths.ShouldContain(p => p.EndsWith("/GetMetadata", StringComparison.Ordinal));
|
||||
handler.Paths.ShouldContain(p => p.EndsWith("/Read", StringComparison.Ordinal));
|
||||
handler.Paths.ShouldContain(p => p.EndsWith("/Write", StringComparison.Ordinal));
|
||||
// H2 (coordinator decision): the probe always asks for what this consumer understands; nothing else carries the
|
||||
// header, because this origin advertised no history field.
|
||||
// H2 (coordinator decision): the probe always asks for what this consumer understands (A2a: history and
|
||||
// conditions); nothing else carries the header, because this origin advertised neither field.
|
||||
handler.FeatureHeaders.ShouldNotBeEmpty();
|
||||
handler.FeatureHeaders.ShouldAllBe(x => x == "history");
|
||||
handler.FeatureHeaders.ShouldAllBe(x => x == "history,conditions");
|
||||
handler.FeatureHeaderPaths.ShouldAllBe(p => p.EndsWith("/GetCapabilities", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public sealed class GrpcDataFeatureHeaderClientTests
|
||||
{
|
||||
var wire = DataProtoMapper.EncodeMetadataResponse([new("0", DataItemStatus.Good,
|
||||
new DataMetadata(View, "x", "tag", DataValueKind.Int32, -1, [], true, DataOperations.Read | DataOperations.Write, 1, null, null, false), null)]);
|
||||
wire.Items[0].Value.AllowedOperations |= 64u; // still reserved (32 is understood since H2)
|
||||
wire.Items[0].Value.AllowedOperations |= 64u | 128u; // 128 still reserved; 64 is never a node operation (A2a)
|
||||
wire.Serving = DataProtoMapper.EncodeServing(Serving); message = wire;
|
||||
}
|
||||
else if (path.EndsWith("/Read", StringComparison.Ordinal))
|
||||
|
||||
Reference in New Issue
Block a user