[AZ-1074] [AZ-1075] gRPC tile stream tests and shared proto
ci/woodpecker/push/01-test Pipeline failed
ci/woodpecker/push/02-build-push unknown status

Extract tile_provision.proto into GrpcContracts, add integration
tests and validation hardening for DeliverRouteTiles streaming.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-06-25 10:04:41 +03:00
parent 275ee1b554
commit 7633134a8a
20 changed files with 725 additions and 26 deletions
@@ -226,6 +226,24 @@ public sealed class RouteTileDeliveryOrchestrator
throw new ArgumentException("Route must have at least 2 waypoints", nameof(job));
}
for (var i = 0; i < job.Waypoints.Count; i++)
{
var (lat, lon) = job.Waypoints[i];
if (lat is < -90.0 or > 90.0)
{
throw new ArgumentException(
$"waypoints[{i}].lat must be between -90 and 90",
nameof(job));
}
if (lon is < -180.0 or > 180.0)
{
throw new ArgumentException(
$"waypoints[{i}].lon must be between -180 and 180",
nameof(job));
}
}
if (job.RegionSizeMeters <= 0)
{
throw new ArgumentOutOfRangeException(nameof(job), "region_size_meters must be positive");