Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule ensure_redhat_gpgkey_installed Doesn't pass Ansible Tests #11380

Closed
Mab879 opened this issue Dec 13, 2023 · 1 comment
Closed

Rule ensure_redhat_gpgkey_installed Doesn't pass Ansible Tests #11380

Mab879 opened this issue Dec 13, 2023 · 1 comment
Labels
Ansible Ansible remediation update. RHEL8 Red Hat Enterprise Linux 8 product related.

Comments

@Mab879
Copy link
Member

Mab879 commented Dec 13, 2023

Description of problem:

Rule ensure_redhat_gpgkey_installed doesn't pass Ansible tests

SCAP Security Guide Version:

7639349

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.

@marcusburghardt marcusburghardt added Ansible Ansible remediation update. RHEL8 Red Hat Enterprise Linux 8 product related. labels Dec 20, 2023
@Mab879
Copy link
Member Author

Mab879 commented Jan 10, 2024

Fixed in #11413, closing.

@Mab879 Mab879 closed this as completed Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ansible Ansible remediation update. RHEL8 Red Hat Enterprise Linux 8 product related.
Projects
None yet
Development

No branches or pull requests

2 participants