This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user