update
This commit is contained in:
@@ -92,6 +92,28 @@ assert_failure "Pulse v6.1.1 compatibility rejects missing setup token" \
|
||||
TAPM_PULSE_NORMALIZE_V611_SETUP_ARTIFACT \
|
||||
'{"type":"pve","host":"https://pve1:8006"}' 'http://10.10.2.30:7655'
|
||||
|
||||
test_pve_token_output_assignment() {
|
||||
local token_output=''
|
||||
local token_status=99
|
||||
|
||||
pveum() {
|
||||
printf '%s\n' \
|
||||
'{"full-tokenid":"pulse-monitor@pve!pulse-test","value":"secret-value"}'
|
||||
}
|
||||
TAPM_PULSE_CREATE_PVE_AUTO_REGISTER_TOKEN \
|
||||
'pulse-test' token_output token_status || return 1
|
||||
unset -f pveum
|
||||
|
||||
assert_equal \
|
||||
'{"full-tokenid":"pulse-monitor@pve!pulse-test","value":"secret-value"}' \
|
||||
"$token_output" \
|
||||
"Pulse receives pveum token output"
|
||||
assert_equal 0 "$token_status" "Pulse receives pveum token status"
|
||||
}
|
||||
|
||||
assert_success "Pulse v6.1.1 pveum output-shadowing workaround" \
|
||||
test_pve_token_output_assignment
|
||||
|
||||
nodes_json='[
|
||||
{"node":"pve3","status":"offline"},
|
||||
{"node":"pve2","status":"online"},
|
||||
|
||||
Reference in New Issue
Block a user