c0051_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 -> c0051
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/c0051
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc000098a60)((len=2 cap=2) {
(impl.Scope) {
Name: (string) (len=7) "nonprod",
Ref: (string) "",
RefDir: (string) "",
Members: ([]string) (len=2 cap=2) {
(string) (len=3) "dev",
(string) (len=7) "staging"
},
Vars: (core.Cache) (len=1) {
(string) (len=7) "enc_key": (string) (len=14) "my_non_enc_key"
},
Dvars: (impl.Dvars) <nil>
},
(impl.Scope) {
Name: (string) (len=4) "prod",
Ref: (string) "",
RefDir: (string) "",
Members: ([]string) (len=1 cap=1) {
(string) (len=4) "prod"
},
Vars: (core.Cache) (len=1) {
(string) (len=7) "enc_key": (string) (len=15) "my_prod_enc_key"
},
Dvars: (impl.Dvars) <nil>
}
})
[nonprod] dvar expanded result:
{
}
scope[nonprod] merged: {
"enc_key": "my_non_enc_key"
}
[prod] dvar expanded result:
{
}
scope[prod] merged: {
"enc_key": "my_prod_enc_key"
}
---------group vars----------
nonprod: (*core.Cache)({
"enc_key": "my_non_enc_key"
})
prod: (*core.Cache)({
"enc_key": "my_prod_enc_key"
})
global: (*core.Cache)({
})
groups members:[dev staging prod]
merged[ dev ] runtime vars:
(*core.Cache)({
"bank_acct": "1234-5678",
"enc_key": "my_non_enc_key"
})
(*core.Cache)(0xc0000c8208)((len=2) {
(string) (len=9) "bank_acct": (string) (len=9) "1234-5678",
(string) (len=7) "enc_key": (string) (len=14) "my_non_enc_key"
})
dvar> bank_password_encrypted:
"WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0="
-
WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=
dvar> bank_password_decrypted:
"mybankpassword"
-
mybankpassword
dvar> bank_password:
"6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY="
-
6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=
dvar> bank_password_using_defause_config:
"6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY="
-
6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=
[runtime global] dvar expanded result:
{
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"bank_password_decrypted": "mybankpassword",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"secure_bank_password": "mybankpassword",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"secure_bank_password_using_defause_config": "mybankpassword"
}
-------runtime global final merged with dvars-------
(*core.Cache)({
"bank_acct": "1234-5678",
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"bank_password_decrypted": "mybankpassword",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"enc_key": "my_non_enc_key"
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1:
{
Name: "",
Do: "task_generate_password",
Dox: <nil>,
Func: "call",
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)({
"bank_acct": "1234-5678",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"enc_key": "my_non_enc_key",
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"bank_password_decrypted": "mybankpassword",
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"secure_bank_password": "mybankpassword",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"up_runtime_task_layer_number": 0,
"bank_password_decrypted": "mybankpassword",
"enc_key": "my_non_enc_key",
"secure_bank_password_using_defause_config": "mybankpassword",
"bank_acct": "1234-5678",
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0="
}
self: final context exec vars:
(*core.Cache)({
"enc_key": "my_non_enc_key",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_password_decrypted": "mybankpassword",
"up_runtime_task_layer_number": 0,
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_acct": "1234-5678",
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0="
})
caller's vars to task (task_generate_password)::
(*core.Cache)({
"secure_bank_password": "mybankpassword",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"secure_bank_password_using_defause_config": "mybankpassword",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"enc_key": "my_non_enc_key",
"bank_acct": "1234-5678",
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"bank_password_decrypted": "mybankpassword",
"up_runtime_task_layer_number": 0
})
located task-> 2 [task_generate_password]:
=Task2: [task ==> task_generate_password: ]
Executing task stack layer: 2
--Step1:
{
Name: "",
Do: {
"echo \"bank account [{{.bank_acct}}]\"",
"echo \"bank password encrypted [{{.bank_password_encrypted}}]\"",
"echo \"bank password [{{.bank_password}}]\"",
"echo \"secure bank password [{{.secure_bank_password}}]\"",
"echo \"bank password using default config [{{.bank_password_using_defause_config}}]\"",
"echo \"secure bank password using default config [{{.secure_bank_password_using_defause_config}}]\""
},
Dox: <nil>,
Func: "shell",
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)({
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"up_runtime_task_layer_number": 1,
"enc_key": "my_non_enc_key",
"bank_password_decrypted": "mybankpassword",
"bank_acct": "1234-5678",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY="
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"enc_key": "my_non_enc_key",
"bank_acct": "1234-5678",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_password_decrypted": "mybankpassword",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"secure_bank_password_using_defause_config": "mybankpassword",
"secure_bank_password": "mybankpassword",
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"up_runtime_task_layer_number": 1
}
self: final context exec vars:
(*core.Cache)({
"bank_password_decrypted": "mybankpassword",
"up_runtime_task_layer_number": 1,
"bank_password_encrypted": "WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=",
"bank_password_using_defause_config": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"enc_key": "my_non_enc_key",
"bank_password": "6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=",
"bank_acct": "1234-5678"
})
cmd( 1):
echo "bank account [{{.bank_acct}}]"
cmd=>:
echo "bank account [1234-5678]"
-
bank account [1234-5678]
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=32) "echo \"bank account [1234-5678]\"",
Code: (int) 0,
Output: (string) (len=25) "bank account [1234-5678]",
ErrMsg: (string) ""
}
cmd( 2):
echo "bank password encrypted [{{.bank_password_encrypted}}]"
cmd=>:
echo "bank password encrypted [WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=]"
-
bank password encrypted [WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=]
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=77) "echo \"bank password encrypted [WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=]\"",
Code: (int) 0,
Output: (string) (len=70) "bank password encrypted [WCDJfTWNcv+OzbnQp2IpMD0rBQNv4P+B1GkkS8p87q0=]",
ErrMsg: (string) ""
}
cmd( 3):
echo "bank password [{{.bank_password}}]"
cmd=>:
echo "bank password [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]"
-
bank password [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=67) "echo \"bank password [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]\"",
Code: (int) 0,
Output: (string) (len=60) "bank password [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]",
ErrMsg: (string) ""
}
cmd( 4):
echo "secure bank password [{{.secure_bank_password}}]"
cmd=>:
echo "secure bank password [SECURE_SENSITIVE_INFO_MASKED]"
-
secure bank password [mybankpassword]
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=44) "echo \"secure bank password [mybankpassword]\"",
Code: (int) 0,
Output: (string) (len=37) "secure bank password [mybankpassword]",
ErrMsg: (string) ""
}
cmd( 5):
echo "bank password using default config [{{.bank_password_using_defause_config}}]"
cmd=>:
echo "bank password using default config [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]"
-
bank password using default config [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=88) "echo \"bank password using default config [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]\"",
Code: (int) 0,
Output: (string) (len=81) "bank password using default config [6HmsmiJIW1PfIXcF4WwOKOMDiL7PstgfKs2aRFajrwY=]",
ErrMsg: (string) ""
}
cmd( 6):
echo "secure bank password using default config [{{.secure_bank_password_using_defause_config}}]"
cmd=>:
echo "secure bank password using default config [SECURE_SENSITIVE_INFO_MASKED]"
-
secure bank password using default config [mybankpassword]
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=65) "echo \"secure bank password using default config [mybankpassword]\"",
Code: (int) 0,
Output: (string) (len=58) "secure bank password using default config [mybankpassword]",
ErrMsg: (string) ""
}
. ok
Logs with different verbose level
References