c0141_vv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0141
Verbose -> vv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0141
module: [self], instance id: [dev], exec profile: []
Task1: [task ==> task: test reg with a registered name
in this case the registered reslt name is: test2_httpbinget_result
]
-Step1: [httpbinget: it will use the given name as var name to register the result ]
cmd( 1):
curl -s -X GET "https://httpbin.org/get" -H "accept: application/json"
-
{
"args": {},
"headers": {
"Accept": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0",
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331"
},
"origin": "118.208.99.38",
"url": "https://httpbin.org/get"
}
-
.. ok
. ok
-Step2:
dvar> api_response:
"{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}"
-
{
"args": {},
"headers": {
"Accept": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0",
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331"
},
"origin": "118.208.99.38",
"url": "https://httpbin.org/get"
}
dvar[object]> api_response_object:
{
"args": {
},
"headers": {
"Accept": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0",
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331"
},
"origin": "118.208.99.38",
"url": "https://httpbin.org/get"
}
dvar> api_response_headers:
"map[Accept:application/json Host:httpbin.org User-Agent:curl/7.70.0 X-Amzn-Trace-Id:Root=1-5f7c6629-0fe64ffd23ac0b641cb78331]"
-
map[Accept:application/json Host:httpbin.org User-Agent:curl/7.70.0 X-Amzn-Trace-Id:Root=1-5f7c6629-0fe64ffd23ac0b641cb78331]
dvar> api_response_headers_host:
"httpbin.org"
-
httpbin.org
~SubStep1: [print: ]
0
~SubStep2: [print: ]
{
"args": {},
"headers": {
"Accept": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0",
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331"
},
"origin": "118.208.99.38",
"url": "https://httpbin.org/get"
}
~SubStep3: [print: ]
{
"args": {},
"headers": {
"Accept": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0",
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331"
},
"origin": "118.208.99.38",
"url": "https://httpbin.org/get"
}
~SubStep4: [inspect: ]
1: inspect[exec_vars]
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"api_response_headers_host": "httpbin.org",
"api_response": "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
"api_response_object": {
"args": {
},
"headers": {
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0",
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331",
"Accept": "application/json"
},
"origin": "118.208.99.38",
"url": "https://httpbin.org/get"
},
"api_response_headers": "map[Accept:application/json Host:httpbin.org User-Agent:curl/7.70.0 X-Amzn-Trace-Id:Root=1-5f7c6629-0fe64ffd23ac0b641cb78331]",
"httpbin_get_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
}),
"last_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
})
})
2: inspect[debug_vars]
-debug vars-
"UpRunTimeVars"
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
"RuntimeVarsAndDvarsMerged"
(*core.Cache)({
"httpbin_get_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
}),
"last_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
})
})
"ExecbaseVars"
(*core.Cache)({
"httpbin_get_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
}),
"last_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
})
})
"TaskVars"
(*core.Cache)({
})
"ExecContextVars"
(*core.Cache)({
"api_response_headers": "map[Accept:application/json Host:httpbin.org User-Agent:curl/7.70.0 X-Amzn-Trace-Id:Root=1-5f7c6629-0fe64ffd23ac0b641cb78331]",
"httpbin_get_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
}),
"last_result": (*utils.ExecResult)({
Cmd: "curl -s -X GET \"https://httpbin.org/get\" -H \"accept: application/json\"",
Code: 0,
Output: "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
ErrMsg: ""
}),
"up_runtime_task_layer_number": 0,
"api_response_headers_host": "httpbin.org",
"api_response": "{\n \"args\": {}, \n \"headers\": {\n \"Accept\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"curl/7.70.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-5f7c6629-0fe64ffd23ac0b641cb78331\"\n }, \n \"origin\": \"118.208.99.38\", \n \"url\": \"https://httpbin.org/get\"\n}",
"api_response_object": {
"origin": "118.208.99.38",
"url": "https://httpbin.org/get",
"args": {
},
"headers": {
"X-Amzn-Trace-Id": "Root=1-5f7c6629-0fe64ffd23ac0b641cb78331",
"Accept": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.70.0"
}
}
})
--
~SubStep5: [print: ]
httpbin.org
~SubStep6: [printObj: ]
object:
api_response_headers: "map[Accept:application/json Host:httpbin.org User-Agent:curl/7.70.0 X-Amzn-Trace-Id:Root=1-5f7c6629-0fe64ffd23ac0b641cb78331]"
~SubStep7: [print: you can not use this header directly, if you intend to use a sub node, then you should use query and register a sub node
]
map[Accept:application/json Host:httpbin.org User-Agent:curl/7.70.0 X-Amzn-Trace-Id:Root=1-5f7c6629-0fe64ffd23ac0b641cb78331]
~SubStep8: [print: ]
httpbin.org
Logs with different verbose level
References