ComplianceAsCode / content-test-filtering

System for Automatic Filtering of Tests for ComplianceAsCode project
8 stars 6 forks source link

Update where we search for CaC products #9

Closed mildas closed 3 years ago

mildas commented 3 years ago

Products were moved under products/ directory.

Testing:

  1. Created branch in content repository
  2. Changed linux_os/guide/system/software/integrity/software-integrity/rpm_verification/rpm_verify_ownership/ansible/shared.yml
  3. $ python3 content_test_filtering.py branch --local --repository /home/mlysonek/SCAP/content test_branch

Before:

Changes identified:
  Rules:
    rpm_verify_ownership

  Rule rpm_verify_ownership:
    Ansible remediation changed.
    The rule doesn't occur in any profile nor product.

After:

Changes identified:
  Rules:
    rpm_verify_ownership

  Rule rpm_verify_ownership:
    Ansible remediation changed.

Recommended tests to execute:
    build_product rhel8
    tests/test_suite.py rule --libvirt qemu:///system test-suite-vm --remediate-using ansible --datastream build/ssg-rhel8-ds.xml rpm_verify_ownership