fix(security): use broker Python for Wazuh self-test

This commit is contained in:
ogt
2026-07-15 15:42:42 +08:00
parent cc5ef13a8f
commit a98191f2df
3 changed files with 9 additions and 2 deletions

View File

@@ -153,7 +153,14 @@ def test_wazuh_integration_catalog_and_rollback_contract_are_bounded() -> None:
assert catalog["auto_apply_enabled"] is True
assert catalog["approval_required"] is False
assert catalog["supports_check_mode"] is True
assert catalog["catalog_revision"] == "2026-07-15-wazuh-alert-ingress-v2"
assert playbook[0]["hosts"] == "host_112"
self_test_task = playbook[0]["tasks"][0]
assert self_test_task["delegate_to"] == "localhost"
assert self_test_task["become"] is False
assert self_test_task["ansible.builtin.command"]["argv"][0] == (
"{{ ansible_playbook_python }}"
)
assert "backup: true" in text
assert "remote_src: true" in text
assert "wazuh_privileged_convergence_capability_missing" in text