Construct rapid QA board from actual collected puzzle DTO and preserve source hashes
This commit is contained in:
@@ -21,8 +21,9 @@ try {
|
|||||||
Check 'rapid-actual-offline' $offline 'Airplane1 wifi0 data0 no active network'
|
Check 'rapid-actual-offline' $offline 'Airplane1 wifi0 data0 no active network'
|
||||||
$boardPath=Join-Path $sourceDir 'stage-20-success.json'
|
$boardPath=Join-Path $sourceDir 'stage-20-success.json'
|
||||||
$result.fixtureProvenance.actualStage20Sha256=(Get-FileHash $boardPath).Hash
|
$result.fixtureProvenance.actualStage20Sha256=(Get-FileHash $boardPath).Hash
|
||||||
$board=(Get-Content $boardPath -Raw|ConvertFrom-Json).latestFreePlay
|
$collectedPath=Join-Path $sourceDir 'stage-20-collected.json'
|
||||||
$board.PSObject.Properties.Remove('sourceStageId');$board|Add-Member stageId 20
|
$result.fixtureProvenance.actualStage20CollectedSha256=(Get-FileHash $collectedPath).Hash
|
||||||
|
$board=@((Get-Content $collectedPath -Raw|ConvertFrom-Json).puzzleStates|Where-Object stageId -eq 20)[0]
|
||||||
for($i=0;$i-lt10;$i++){$board.balls[$i].position=[pscustomobject][ordered]@{x=[double]($i%5-2);y=(2.2+[Math]::Floor($i/5));z=[double]-1}}
|
for($i=0;$i-lt10;$i++){$board.balls[$i].position=[pscustomobject][ordered]@{x=[double]($i%5-2);y=(2.2+[Math]::Floor($i/5));z=[double]-1}}
|
||||||
$board.groups=@([pscustomobject][ordered]@{id='qa-collected10';ballIds=@($board.balls.id)});$board.collectedBallIds=@($board.balls.id);$board.countedBallIds=@()
|
$board.groups=@([pscustomobject][ordered]@{id='qa-collected10';ballIds=@($board.balls.id)});$board.collectedBallIds=@($board.balls.id);$board.countedBallIds=@()
|
||||||
$board.camera=[pscustomobject][ordered]@{target=[pscustomobject][ordered]@{x=[double]0;y=.6;z=[double]0};rotation=[pscustomobject][ordered]@{x=[double]0;y=[double]0;z=[double]0;w=[double]1};distance=[double]11}
|
$board.camera=[pscustomobject][ordered]@{target=[pscustomobject][ordered]@{x=[double]0;y=.6;z=[double]0};rotation=[pscustomobject][ordered]@{x=[double]0;y=[double]0;z=[double]0;w=[double]1};distance=[double]11}
|
||||||
|
|||||||
Reference in New Issue
Block a user