feat: list Creator-owned continuity items
CI / test (push) Failing after 14m51s

This commit is contained in:
m
2026-08-16 15:54:30 +03:00
parent 6a5550b7b0
commit 2877571bb3
6 changed files with 111 additions and 1 deletions
+9 -1
View File
@@ -55,4 +55,12 @@ $owned = docker --context $DockerContext exec --env "CREATOR_TEST_SESSION=$creat
if ($LASTEXITCODE -ne 0 -or ($owned | ConvertFrom-Json).ID -ne $ownedID) { throw "owned ProspectiveItem was not returned" }
Expect-GetStatus "$continuityURL/v1/creator/prospective-items/$foreignID" 403 $creatorSession
Write-Output "DEV-000026 authenticated Creator Continuity API: PASS"
$listedResponse = docker --context $DockerContext exec --env "CREATOR_TEST_SESSION=$creatorSession" $continuityContainer sh -c 'wget -qO- --header="Authorization: Bearer $CREATOR_TEST_SESSION" "$0"' "$continuityURL/v1/creator/prospective-items?limit=100"
if ($LASTEXITCODE -ne 0) { throw "Creator ProspectiveItem list failed" }
$listed = $listedResponse | ConvertFrom-Json
if (-not ($listed.Items | Where-Object ID -eq $ownedID)) { throw "owned ProspectiveItem missing from list" }
if ($listed.Items | Where-Object ID -eq $foreignID) { throw "foreign ProspectiveItem leaked into list" }
if ($listed.Items.Count -gt 100) { throw "ProspectiveItem list exceeded hard limit" }
Expect-GetStatus "$continuityURL/v1/creator/prospective-items?limit=101" 400 $creatorSession
Write-Output "DEV-000028 Creator-owned Continuity list: PASS"