update pulse installer, removing host registration
This commit is contained in:
@@ -128,6 +128,19 @@ assert_equal 'pve3' \
|
||||
|
||||
assert_success "valid Pulse CTID" TAPM_PULSE_VALID_CTID 210
|
||||
assert_failure "invalid Pulse CTID" TAPM_PULSE_VALID_CTID 99
|
||||
ctid_resources='[
|
||||
{"type":"qemu","vmid":200},
|
||||
{"type":"lxc","vmid":"201"},
|
||||
{"type":"storage","storage":"local"}
|
||||
]'
|
||||
assert_equal 202 \
|
||||
"$(TAPM_PULSE_FIRST_AVAILABLE_CTID_FROM_RESOURCES "$ctid_resources" 200)" \
|
||||
"first available Pulse CTID starts at 200 and skips occupied IDs"
|
||||
assert_equal 200 \
|
||||
"$(TAPM_PULSE_FIRST_AVAILABLE_CTID_FROM_RESOURCES '[]' 200)" \
|
||||
"Pulse CTID 200 selected when available"
|
||||
assert_failure "invalid Pulse CTID resource data rejected" \
|
||||
TAPM_PULSE_FIRST_AVAILABLE_CTID_FROM_RESOURCES '{}' 200
|
||||
assert_success "valid Pulse hostname" TAPM_PULSE_VALID_HOSTNAME pulse-monitor
|
||||
assert_failure "invalid Pulse hostname" TAPM_PULSE_VALID_HOSTNAME 'pulse monitor'
|
||||
assert_success "valid positive integer" TAPM_PULSE_VALID_POSITIVE_INTEGER 1024
|
||||
|
||||
Reference in New Issue
Block a user