@@ -1316,6 +1316,7 @@ func TestGitParamOn2ApplicationSameRepo(t *testing.T) {
1316
1316
var manualEvent sdk.WorkflowNodeRunManual
1317
1317
manualEvent .Payload = map [string ]string {
1318
1318
"git.branch" : "feat/branch" ,
1319
+ "my.value" : "bar" ,
1319
1320
}
1320
1321
1321
1322
opts := & sdk.WorkflowRunPostHandlerOption {
@@ -1336,13 +1337,16 @@ func TestGitParamOn2ApplicationSameRepo(t *testing.T) {
1336
1337
assert .Equal (t , "mylastcommit" , mapParams ["git.hash" ])
1337
1338
assert .Equal (t , "steven.guiheux" , mapParams ["git.author" ])
1338
1339
assert .Equal (t , "super commit" , mapParams ["git.message" ])
1340
+ assert .Equal (t , "bar" , mapParams ["my.value" ])
1339
1341
1340
1342
mapParams2 := sdk .ParametersToMap (wr .WorkflowNodeRuns [w .WorkflowData .Node .Triggers [0 ].ChildNode .ID ][0 ].BuildParameters )
1341
1343
t .Logf ("%+v" , mapParams2 )
1342
1344
assert .Equal (t , "feat/branch" , mapParams2 ["git.branch" ])
1343
1345
assert .Equal (t , "mylastcommit" , mapParams2 ["git.hash" ])
1344
1346
assert .Equal (t , "steven.guiheux" , mapParams2 ["git.author" ])
1345
1347
assert .Equal (t , "super commit" , mapParams2 ["git.message" ])
1348
+ assert .Equal (t , "bar" , mapParams2 ["my.value" ])
1349
+ assert .Equal (t , "build" , mapParams2 ["workflow.root.pipeline" ])
1346
1350
1347
1351
}
1348
1352
0 commit comments