update
This commit is contained in:
+15
-2
@@ -49,9 +49,9 @@ assert_success "registered Pulse agent response accepted" \
|
||||
'{"agent":{"id":"agent-123","hostname":"pve1"}}'
|
||||
assert_failure "missing Pulse agent ID rejected" \
|
||||
TAPM_PULSE_AGENT_REGISTERED_FROM_RESPONSE '{"agent":{"hostname":"pve1"}}'
|
||||
assert_equal '{"type":"pve","enableCommands":false}' \
|
||||
assert_equal '{"type":"host","enableCommands":false}' \
|
||||
"$(TAPM_PULSE_AGENT_TOKEN_REQUEST_JSON)" \
|
||||
"Proxmox-specific agent enrollment requested with commands disabled"
|
||||
"host telemetry enrollment requested with commands disabled"
|
||||
|
||||
setup_token='0123456789abcdef0123456789abcdef'
|
||||
setup_host='https://pve1.example.test:8006'
|
||||
@@ -147,6 +147,19 @@ assert_success "valid Pulse VLAN" TAPM_PULSE_VALID_OPTIONAL_VLAN 4094
|
||||
assert_failure "Pulse VLAN zero rejected" TAPM_PULSE_VALID_OPTIONAL_VLAN 0
|
||||
assert_success "blank Pulse VLAN accepted" TAPM_PULSE_VALID_OPTIONAL_VLAN ''
|
||||
|
||||
assert_success "12-character Pulse admin password accepted" \
|
||||
TAPM_PULSE_VALID_ADMIN_PASSWORD '123456789012'
|
||||
assert_success "72-byte Pulse admin password accepted" \
|
||||
TAPM_PULSE_VALID_ADMIN_PASSWORD \
|
||||
'123456789012345678901234567890123456789012345678901234567890123456789012'
|
||||
assert_failure "short Pulse admin password rejected" \
|
||||
TAPM_PULSE_VALID_ADMIN_PASSWORD '12345678901'
|
||||
assert_failure "multibyte Pulse admin password still requires 12 characters" \
|
||||
TAPM_PULSE_VALID_ADMIN_PASSWORD 'éééééé'
|
||||
assert_failure "Pulse admin password above bcrypt limit rejected" \
|
||||
TAPM_PULSE_VALID_ADMIN_PASSWORD \
|
||||
'1234567890123456789012345678901234567890123456789012345678901234567890123'
|
||||
|
||||
resources='[
|
||||
{"type":"lxc","name":"pulse-a","tags":"tapm;pulse"},
|
||||
{"type":"qemu","name":"unrelated"}
|
||||
|
||||
Reference in New Issue
Block a user