c0096_vvvvv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0096
Verbose -> vvvvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
:release version: 1.0.0
:verbose level: vvvvv
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0096
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc0001c1500)(<nil>)
---------group vars----------
global: (*core.Cache)({
})
groups members:[]
merged[ dev ] runtime vars:
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
}
}
}
},
"school_details_object": {
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
}
}
})
(*core.Cache)(0xc00000e990)((len=2) {
(string) (len=4) "root": (map[string]interface {}) (len=1) {
(string) (len=6) "parent": (map[string]interface {}) (len=1) {
(string) (len=21) "school_details_object": (map[string]interface {}) (len=3) {
(string) (len=6) "school": (map[string]interface {}) (len=2) {
(string) (len=7) "address": (string) (len=28) "1 fox road, sydney, nsw 2000",
(string) (len=4) "name": (string) (len=14) "sydney grammar"
},
(string) (len=10) "principals": ([]interface {}) (len=3 cap=3) {
(string) (len=5) "peter",
(string) (len=3) "tom",
(string) (len=4) "jane"
},
(string) (len=7) "ranking": (string) (len=4) "No 5"
}
}
},
(string) (len=21) "school_details_object": (map[string]interface {}) (len=3) {
(string) (len=6) "school": (map[string]interface {}) (len=2) {
(string) (len=4) "name": (string) (len=14) "sydney grammar",
(string) (len=7) "address": (string) (len=28) "1 fox road, sydney, nsw 2000"
},
(string) (len=10) "principals": ([]interface {}) (len=3 cap=3) {
(string) (len=5) "peter",
(string) (len=3) "tom",
(string) (len=4) "jane"
},
(string) (len=7) "ranking": (string) (len=4) "No 5"
}
})
[runtime global] dvar expanded result:
{
}
-------runtime global final merged with dvars-------
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
}
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1:
{
Name: "",
Do: {
{
"name": "template",
"desc": "render the template file using above dynamic variable from defined var",
"cmd": {
"src": "./tests/functests/d0079.template",
"dest": "/tmp/myschool.txt",
"datakey": "school_details_object"
}
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
}
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"root": {
"parent": {
"school_details_object": {
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
}
}
}
},
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
}
}
}
},
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
})
map[datakey:school_details_object dest:/tmp/myschool.txt src:./tests/functests/d0079.template]
~SubStep1: [template: render the template file using above dynamic variable from defined var ]
-Step2:
{
Name: "",
Do: {
{
"name": "readFile",
"desc": "read content of a file and register it to a var",
"cmd": {
"filename": "myschool.txt",
"dir": "/tmp",
"reg": "my_school"
}
},
{
"name": "print",
"cmd": "{{.my_school}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 0,
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
}
}
}
self: final context exec vars:
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
})
map[dir:/tmp filename:myschool.txt reg:my_school]
~SubStep1: [readFile: read content of a file and register it to a var ]
after reg the var - contextual global:
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n"
})
after reg the var - local:
(*core.Cache)({
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
})
{{.my_school}}
~SubStep2: [print: ]
My school name is: sydney grammar, it is located
at 1 fox road, sydney, nsw 2000
We have got peter, tom, jane, as our principals
Our school ranking last year is No 5
-Step3:
{
Name: "",
Do: {
{
"name": "template",
"desc": "render the template file using above dynamic variable from defined var",
"cmd": {
"src": "./tests/functests/d0079.template",
"dest": "/tmp/myschool.txt",
"datapath": "root.parent.school_details_object"
}
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"school_details_object": {
"ranking": "No 5",
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
}
},
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"up_runtime_task_layer_number": 0,
"root": {
"parent": {
"school_details_object": {
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
}
}
}
}
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"up_runtime_task_layer_number": 0,
"root": {
"parent": {
"school_details_object": {
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
}
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
}
},
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n"
})
map[datapath:root.parent.school_details_object dest:/tmp/myschool.txt src:./tests/functests/d0079.template]
~SubStep1: [template: render the template file using above dynamic variable from defined var ]
(string) (len=11) "sub yml str"
(string) (len=183) "parent:\n school_details_object:\n principals:\n - peter\n - tom\n - jane\n ranking: No 5\n school:\n address: 1 fox road, sydney, nsw 2000\n name: sydney grammar\n"
sub object::
(*map[interface {}]interface {})({
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
}
})
-Step4:
{
Name: "",
Do: {
{
"name": "readFile",
"desc": "read content of a file and register it to a var",
"cmd": {
"filename": "myschool.txt",
"dir": "/tmp",
"reg": "my_school"
}
},
{
"name": "print",
"cmd": "{{.my_school}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"root": {
"parent": {
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"up_runtime_task_layer_number": 0,
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"root": {
"parent": {
"school_details_object": {
"ranking": "No 5",
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
}
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
self: final context exec vars:
(*core.Cache)({
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
},
"up_runtime_task_layer_number": 0
})
map[dir:/tmp filename:myschool.txt reg:my_school]
~SubStep1: [readFile: read content of a file and register it to a var ]
after reg the var - contextual global:
(*core.Cache)({
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"ranking": "No 5",
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
}
},
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n"
})
after reg the var - local:
(*core.Cache)({
"my_school": "\n\nMy school name is: sydney grammar, it is located\nat 1 fox road, sydney, nsw 2000\n\n\nWe have got peter, tom, jane, as our principals\n\nOur school ranking last year is No 5\n",
"root": {
"parent": {
"school_details_object": {
"school": {
"address": "1 fox road, sydney, nsw 2000",
"name": "sydney grammar"
},
"principals": {
"peter",
"tom",
"jane"
},
"ranking": "No 5"
}
}
},
"school_details_object": {
"ranking": "No 5",
"school": {
"name": "sydney grammar",
"address": "1 fox road, sydney, nsw 2000"
},
"principals": {
"peter",
"tom",
"jane"
}
},
"up_runtime_task_layer_number": 0
})
{{.my_school}}
~SubStep2: [print: ]
My school name is: sydney grammar, it is located
at 1 fox road, sydney, nsw 2000
We have got peter, tom, jane, as our principals
Our school ranking last year is No 5
Logs with different verbose level
References