update pulse installer, removing host registration

This commit is contained in:
David Schroeder
2026-07-25 23:04:29 -05:00
parent 6b5cbe928d
commit e0214033ec
3 changed files with 58 additions and 35 deletions
+13
View File
@@ -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