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