github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0161.yml (about) 1 doc_meta: | 2 folder: block-func 3 title: test case 3 4 head: | 5 Test the block-func being used in callee 6 7 sections: 8 - title: Demo 9 log: yes 10 11 tasks: 12 - 13 name: task 14 task: 15 - 16 func: cmd 17 desc: | 18 test var overriding in sub_task 19 dvars: 20 - name: aaa 21 value: var_a_from_task 22 flags: 23 - taskScope 24 25 - 26 func: call 27 do: 28 - sub_task 29 30 - 31 name: sub_task 32 task: 33 34 - 35 func: block 36 vars: 37 aaa: var_a_from_sub_task 38 do: 39 - 40 func: cmd 41 desc: | 42 inspect if the correct parameter has been passed in correctly 43 with default value 44 in block func 45 do: 46 - name: assert 47 cmd: 48 - '{{eq .aaa "var_a_from_task"}}' 49 - 50 func: shell 51 do: 52 - echo "{{.aaa}}"