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

bugfix: packages: delim is comma #10559

Merged
merged 1 commit into from
May 15, 2023

Conversation

maage
Copy link
Contributor

@maage maage commented May 14, 2023

Description:

Test files # <parameter> = delimiter is ,.

Rationale:

There might be issues when installing packages.

Review Hints:

Changes all over, so expect some breakage when rules is not fit to be tested in some test env.

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label May 14, 2023
@openshift-ci
Copy link

openshift-ci bot commented May 14, 2023

Hi @maage. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@maage
Copy link
Contributor Author

maage commented May 14, 2023

These need to have different tag than ERROR. It is not error of this PR.

ERROR - Rule 'xccdf_org.ssgproject.content_rule_grub2_enable_fips_mode' isn't present in benchmark 'xccdf_org.ssgproject.content_benchmark_RHEL-8' in '/tmp/ssgts-ds-oimm9gk2'
ERROR - Rule 'xccdf_org.ssgproject.content_rule_smartcard_auth' isn't present in benchmark 'xccdf_org.ssgproject.content_benchmark_RHEL-8' in '/tmp/ssgts-ds-oimm9gk2'
INFO - xccdf_org.ssgproject.content_rule_service_atd_disabled

@codeclimate
Copy link

codeclimate bot commented May 14, 2023

Code Climate has analyzed commit e48bf7c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 52.4%.

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this May 15, 2023
@marcusburghardt marcusburghardt added bugfix Fixes to reported bugs. Test Suite Update in Test Suite. labels May 15, 2023
@marcusburghardt marcusburghardt added this to the 0.1.68 milestone May 15, 2023
Copy link
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have verified that the packages tag is indeed split on commas internally. I have executed a test scenario.

[jcerny@thinkpad scap-security-guide{pr/10559}]$ python3 tests/automatus.py rule --libvirt qemu:///system ssgts_rhel9 --scenario service_disabled_rpcstatd_enabled.pass.sh service_atd_disabled
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/jcerny/work/git/scap-security-guide/logs/rule-custom-2023-05-15-0938/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_service_atd_disabled
INFO - Script service_disabled_rpcstatd_enabled.pass.sh using profile (all) OK

The CI fail is caused by the fact that the rule isn't part of rhel9/rhel8 benchmarks.

@jan-cerny jan-cerny merged commit 14f1fae into ComplianceAsCode:master May 15, 2023
@maage maage deleted the bugfix-comma-1 branch May 18, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes to reported bugs. needs-ok-to-test Used by openshift-ci bot. Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants