ComplianceAsCode / content

Security automation content in SCAP, Bash, Ansible, and other formats
https://complianceascode.readthedocs.io/en/latest/
Other
2.22k stars 698 forks source link

Rule `ensure_redhat_gpgkey_installed` Doesn't pass Ansible Tests #11380

Closed Mab879 closed 10 months ago

Mab879 commented 11 months ago

Description of problem:

Rule ensure_redhat_gpgkey_installed doesn't pass Ansible tests

SCAP Security Guide Version:

76393493a788b4e584406fbb7f8884ffac1714aa

Operating System Version:

RHEL 8

Steps to Reproduce:

1../automatus.py rule --remediate-using ansible --datastream ../build/ssg-rhel8-ds.xml --libvirt qemu:///system automatus_rhel8_10 ensure_redhat_gpgkey_installed

Actual Results:

Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/mburket/review/ComplianceAsCode/content3/tests/logs/rule-custom-2023-12-13-0659/test_suite.log
WARNING - Script fedora_key.fail.sh is not applicable on given platform
INFO - xccdf_org.ssgproject.content_rule_ensure_redhat_gpgkey_installed
INFO - Script key_installed.pass.sh using profile (all) OK
INFO - Script missing_key.fail.sh using profile (all) OK
ERROR - Rule evaluation resulted in fail, instead of expected pass during final stage 
ERROR - The check after remediation failed for rule 'xccdf_org.ssgproject.content_rule_ensure_redhat_gpgkey_installed'.

Expected Results:

All Tests Pass

Additional Information/Debugging Steps:

When using bash the tests do pass.

Mab879 commented 10 months ago

Fixed in #11413, closing.