Remove the 500-point bulk mapping cap

This commit is contained in:
jhartworks committed 2026-11-24 14:53:14 +01:00
1 parent 36b2057991
commit 353a1fb741
4 files changed
+10 -4

No files matched your search

+7
View File
@@ -361,6 +361,13 @@ Assert(store.ListPoints().All(point => point.Id != sampledSourcePoint.Id) &&
store.ListTrendRecords(sampledLog.Id, 10).Count == 2, "Removing a point must stop logging and preserve the history.");
await LtdFeatureTests.RunAsync(store, database, options, authenticatedAdmin!);
var bulkSources = Enumerable.Range(1, 501).Select(index => store.CreatePoint(new(
$"Bulk source {index}", PointProtocol.Internal, PointScope.Internal, "Boolean", true, false, null, JsonElementFor("{}"))).Id).ToArray();
var largeMapping = store.CreateBulkMappings(new(bulkSources, BulkMappingTarget.OpcUa));
Assert(largeMapping is { Created: 501, Existing: 0 } && largeMapping.Assignments.Count == 501,
"A single bulk mapping must accept a selection beyond the former 500-point limit.");
Console.WriteLine("Gateway smoke tests passed.");
if (args.Contains("--preview", StringComparer.Ordinal)) Console.WriteLine($"Preview data: {dataDirectory}");