working test on mock data
This commit is contained in:
@@ -105,12 +105,7 @@ test_password_auth {
|
||||
deny_msgs := {msg | msg := deny[_]}
|
||||
deny_msgs["VM 'insecure_vm' uses password authentication. Use SSH keys only."]
|
||||
}
|
||||
# Deny if VM does not have proper tags for identification
|
||||
deny[msg] {
|
||||
vm := get_vms[_]
|
||||
is_empty(vm.values.tags)
|
||||
msg := sprintf("VM '%s' must have tags for proper identification and management.", [vm.name])
|
||||
}
|
||||
|
||||
# Test qemu agent
|
||||
test_qemu_agent {
|
||||
input := mock_input_insecure
|
||||
@@ -120,11 +115,9 @@ test_qemu_agent {
|
||||
|
||||
# Test network bridge
|
||||
test_network_bridge {# Deny if VM does not have proper tags for identification
|
||||
deny[msg] {
|
||||
vm := get_vms[_]
|
||||
is_empty(vm.values.tags)
|
||||
msg := sprintf("VM '%s' must have tags for proper identification and management.", [vm.name])
|
||||
}abled (skip_ipv6 = true)."]
|
||||
input := mock_input_insecure
|
||||
deny_msgs := {msg | msg := deny[_]}
|
||||
deny_msgs["VM 'insecure_vm' must have tags for proper identification and management."]
|
||||
}
|
||||
|
||||
# Test TLS verification
|
||||
|
||||
Reference in New Issue
Block a user