fix(camera): restrict reports to assigned agent
Heimdall Gitea / Detect CI scope (pull_request) Successful in 8s
Heimdall Gitea / Build and tests (pull_request) Successful in 18m9s
Heimdall Gitea / Build and scan server image (pull_request) Successful in 6m56s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 16m23s
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Successful in 23m2s
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 2s

This commit is contained in:
arnaud.dartois committed 2026-11-12 01:00:37 +01:00
1 parent 35ff573341
commit 883eeac99f
3 files changed
+8 -3

No files matched your search

@@ -96,6 +96,10 @@ public class CamerasControllerTests : PostgresTestBase
$"api/agents/{agentId}/heartbeat", new { publicIp = "127.0.0.1" });
heartbeatResponse.StatusCode.ShouldBe(System.Net.HttpStatusCode.OK);
var unassignedReport = await agentClient.PutAsJsonAsync(
$"api/agents/{agentId}/cameras/{cameraId}/status", new { status = "Online" });
unassignedReport.StatusCode.ShouldBe(System.Net.HttpStatusCode.Forbidden);
var assignmentResponse = await client.PostAsJsonAsync("api/assignments", new
{
cameraId,