This commit is contained in:
@@ -57,5 +57,8 @@ Post-ContinuityJson "http://localhost:8081/v1/prospective-items" @{
|
||||
}
|
||||
$prospective = Invoke-RestMethod -Uri "$BaseURL/api/prospective-items/$prospectiveID" -Method Get -Headers @{Authorization="Bearer $($issued.Token)"}
|
||||
if ($prospective.ID -ne $prospectiveID -or $prospective.State -ne "ARMED") { throw "ProspectiveItem was not returned through the gateway" }
|
||||
$prospectiveList = Invoke-RestMethod -Uri "$BaseURL/api/prospective-items?limit=25" -Method Get -Headers @{Authorization="Bearer $($issued.Token)"}
|
||||
if (-not $prospectiveList.Items -or $prospectiveList.Items.Count -gt 25) { throw "ProspectiveItem register response is invalid" }
|
||||
if ($prospectiveList.Items | Where-Object OwnerPrincipalID -ne "domovoy-creator-principal") { throw "ProspectiveItem register leaked another Principal" }
|
||||
|
||||
Write-Output "DEV-000027 remote Creator Continuity console: PASS"
|
||||
Write-Output "DEV-000029 Creator Continuity register: PASS"
|
||||
|
||||
Reference in New Issue
Block a user