Skip to content

Commit e53d689

Browse files
committed
Fix deploymentInfo access to handle array structure in rollout test
1 parent df27cda commit e53d689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/groovy/vars/OdsComponentStageRolloutOpenShiftDeploymentSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class OdsComponentStageRolloutOpenShiftDeploymentSpec extends PipelineSpockTestB
213213
printCallStack()
214214
assertJobStatusSuccess()
215215
// New format: deploymentInfo keys are just the resource name without kind prefix
216-
deploymentInfo['core'].deploymentId == "core"
216+
deploymentInfo['core'][0].deploymentId == "core"
217217

218218
// test artifact URIS
219219
def buildArtifacts = context.getBuildArtifactURIs()

0 commit comments

Comments
 (0)