@@ -17,23 +17,23 @@ func Test_addStepsPreamble(t *testing.T) {
1717 }{
1818 "simple script" : {
1919 in : `[{"name":"script", "script": "foo bar baz"}]` ,
20- want : "{}\n ---\n run:\n - name: script\n script: foo bar baz\n " ,
20+ want : "{}\n ---\n run:\n - name: script\n script: foo bar baz\n " ,
2121 },
2222 "reference local step" : {
2323 in : `[{"name":"local", "func":"./some/step", "inputs":{"in":"bar"}}]` ,
24- want : "{}\n ---\n run:\n - inputs:\n in: bar\n name: local\n func: ./some/step\n " ,
24+ want : "{}\n ---\n run:\n - inputs:\n in: bar\n name: local\n func: ./some/step\n " ,
2525 },
2626 "reference remote step" : {
2727 in : `[{"name":"remote", "func":"https://gitlab.com/components/script@v1", "inputs":{"in":"bar"}}]` ,
28- want : "{}\n ---\n run:\n - inputs:\n in: bar\n name: remote\n func: https://gitlab.com/components/script@v1\n " ,
28+ want : "{}\n ---\n run:\n - inputs:\n in: bar\n name: remote\n func: https://gitlab.com/components/script@v1\n " ,
2929 },
3030 "action step" : {
3131 in : `[{"name":"action", "action":"some-action@v1", "inputs":{"in":"bar"}}]` ,
32- want : "{}\n ---\n run:\n - action: some-action@v1\n inputs:\n in: bar\n name: action\n " ,
32+ want : "{}\n ---\n run:\n - action: some-action@v1\n inputs:\n in: bar\n name: action\n " ,
3333 },
3434 "exec step" : {
3535 in : `[{"name":"exec", "exec":{"command":["cmd","arg1", "arg2"],"work_dir":"/foo/bar/baz"}, "inputs":{"in":"bar"}}]` ,
36- want : "{}\n ---\n run:\n - exec:\n command:\n - cmd\n - arg1\n - arg2\n work_dir: /foo/bar/baz\n inputs:\n in: bar\n name: exec\n " ,
36+ want : "{}\n ---\n run:\n - exec:\n command:\n - cmd\n - arg1\n - arg2\n work_dir: /foo/bar/baz\n inputs:\n in: bar\n name: exec\n " ,
3737 },
3838 }
3939
0 commit comments