c0178_vvv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0178
Verbose -> vvv
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/c0178
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
Task1: [task ==> task: ]
-Step1: [
this will get a response of:
Output: {
"LoadBalancerDescriptions": [
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
...........
"Instances": [
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
],
...........
}
]
}
]
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
~SubStep1: [print: mock only - pretent to call it ]
aws elb describe-load-balancers --load-balancer-names my-web-app-elb
-Step2:
dvar> elb:
"{\n \"LoadBalancerDescriptions\": [\n {\n \"LoadBalancerName\": \"xx-elb\",\n \"DNSName\": \"x-y-z.elb.amazonaws.com\",\n \"Instances\": [\n {\n \"InstanceId\": \"i-1234567890\"\n },\n {\n \"InstanceId\": \"i-9876543210\"\n }\n ],\n }\n ]\n }\n"
-
{
"LoadBalancerDescriptions": [
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": [
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
],
}
]
}
dvar[object]> elb:
{
"LoadBalancerDescriptions": {
{
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
},
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com"
}
}
}
self: final context exec vars:
(*core.Cache)({
"instances_1": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"instances_2": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"elb": {
"LoadBalancerDescriptions": {
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
}
}
},
"up_runtime_task_layer_number": 0,
"last_result": {
"Output": "{\n \"LoadBalancerDescriptions\": [\n {\n \"LoadBalancerName\": \"xx-elb\",\n \"DNSName\": \"x-y-z.elb.amazonaws.com\",\n \"Instances\": [\n {\n \"InstanceId\": \"i-1234567890\"\n },\n {\n \"InstanceId\": \"i-9876543210\"\n }\n ],\n }\n ]\n }\n"
}
})
~SubStep1: [printObj: ]
object:
instances_1: (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
})
~SubStep2: [printObj: ]
object:
instances_2: (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
})
-Step3:
self: final context exec vars:
(*core.Cache)({
"elb": {
"LoadBalancerDescriptions": {
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
}
}
},
"instances_1": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"instances_2": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"up_runtime_task_layer_number": 0
})
~SubStep1: [inspect: ]
1: inspect[debug_vars]
-debug vars-
"UpRunTimeVars"
(*core.Cache)({
"up_runtime_task_layer_number": 0
})
"RuntimeVarsAndDvarsMerged"
(*core.Cache)({
"elb": {
"LoadBalancerDescriptions": {
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
}
}
},
"instances_1": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"instances_2": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
})
})
"ExecbaseVars"
(*core.Cache)({
"instances_1": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"instances_2": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"elb": {
"LoadBalancerDescriptions": {
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
}
}
}
})
"TaskVars"
(*core.Cache)({
"elb": {
"LoadBalancerDescriptions": {
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
}
}
}
})
"ExecContextVars"
(*core.Cache)({
"elb": {
"LoadBalancerDescriptions": {
{
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com",
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
}
}
},
"instances_1": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"instances_2": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"up_runtime_task_layer_number": 0
})
--
-Step4:
dvar> instances_3:
"- InstanceId: i-1234567890\n- InstanceId: i-9876543210\n"
-
- InstanceId: i-1234567890
- InstanceId: i-9876543210
dvar[object]> instances_3:
{
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
self: final context exec vars:
(*core.Cache)({
"elb": {
"LoadBalancerDescriptions": {
{
"Instances": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
},
"LoadBalancerName": "xx-elb",
"DNSName": "x-y-z.elb.amazonaws.com"
}
}
},
"instances_1": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"instances_2": (*[]interface {})({
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}),
"up_runtime_task_layer_number": 0,
"instances_3": {
{
"InstanceId": "i-1234567890"
},
{
"InstanceId": "i-9876543210"
}
}
})
~SubStep1: [print: ]
i-1234567890
~SubStep1: [print: ]
i-9876543210
Logs with different verbose level
References