test(grpc-data): artifact projection test uses a response cap within the new 256 KiB minimum
This commit is contained in:
+2
-2
@@ -290,14 +290,14 @@ public sealed class GrpcDataArtifactReadTests
|
||||
root["DataConnections"]![0]!["AllowedOperations"] = (int)(DataOperations.Browse | DataOperations.Read | DataOperations.HistoryRead);
|
||||
root["DataExports"]![0]!["MaxConcurrentHistoryReads"] = 2;
|
||||
root["DataExports"]![0]!["MaxHistoryValuesPerPage"] = 50;
|
||||
root["DataExports"]![0]!["MaxHistoryResponseBytes"] = 65536;
|
||||
root["DataExports"]![0]!["MaxHistoryResponseBytes"] = 262144;
|
||||
root["RemoteNamespaceMappings"]![0]!["MaxHistoryAssemblyBytesPerRequest"] = 1 << 20;
|
||||
using var parsed = DeploymentArtifact.Open(Blob(root));
|
||||
var connection = parsed.ParseDataConnections(NodeA).ShouldHaveSingleItem();
|
||||
connection.HistoryTimeoutMilliseconds.ShouldBe(1234);
|
||||
(connection.AllowedOperations & DataOperationSets.Understood).HasFlag(DataOperations.HistoryRead).ShouldBeTrue("understood since H2");
|
||||
var exported = parsed.ParseDataExports(NodeA).ShouldHaveSingleItem();
|
||||
(exported.MaxConcurrentHistoryReads, exported.MaxHistoryValuesPerPage, exported.MaxHistoryResponseBytes).ShouldBe((2, 50, 65536));
|
||||
(exported.MaxConcurrentHistoryReads, exported.MaxHistoryValuesPerPage, exported.MaxHistoryResponseBytes).ShouldBe((2, 50, 262144));
|
||||
parsed.ParseRemoteNamespaceMappings(NodeA).ShouldHaveSingleItem().MaxHistoryAssemblyBytesPerRequest.ShouldBe(1 << 20);
|
||||
// A non-positive history limit on a deployed row is rejected node-side like every other limit.
|
||||
root["DataExports"]![0]!["MaxHistoryValuesPerPage"] = 0;
|
||||
|
||||
Reference in New Issue
Block a user