mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-26 06:21:13 +00:00
[AZ-1074] [AZ-1075] Cycle 9 closeout: security, tests, metrics
Resolve F-AZ1074-1/2 (collection caps, generic gRPC internal errors). Standalone integration compose stack, docs, security audit, perf and retro. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -37,6 +37,29 @@ public class RouteTileDeliveryOrchestratorTests
|
||||
.WithMessage("*lat must be between -90 and 90*");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task DeliverAsync_TooManyWaypoints_Throws()
|
||||
{
|
||||
var expander = new RouteTileExpander(
|
||||
new RoutePointGraphBuilder(Options.Create(new ProcessingConfig { MaxRoutePointSpacingMeters = 200 })),
|
||||
new GeofenceGridCalculator());
|
||||
var orchestrator = CreateOrchestrator(expander, Mock.Of<ITileRepository>(), Mock.Of<ITileService>());
|
||||
var waypoints = Enumerable.Range(0, 501).Select(i => (47.0 + i * 0.0001, 37.0)).ToList();
|
||||
var job = new RouteTileDeliveryJob(
|
||||
Guid.NewGuid(),
|
||||
waypoints,
|
||||
400,
|
||||
18,
|
||||
[],
|
||||
false,
|
||||
[]);
|
||||
|
||||
var act = () => orchestrator.DeliverAsync(job, new RecordingSink(), CancellationToken.None);
|
||||
|
||||
await act.Should().ThrowAsync<ArgumentException>()
|
||||
.WithMessage("*at most 500*");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task DeliverAsync_AllTilesSkippedByClient_EmitsManifestAndCompleteWithZeroDelivered()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user