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

Add templated tests to tests/validate_automatus_metadata.py #12985

Merged

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Feb 5, 2025

Description:

Add templated tests to tests/validate_automatus_metadata.py

Rationale:

Help catch errors.

Review Hints:

Edit a tests such as shared/templates/rsyslog_logfiles_attributes_modify/tests/legacy_correct_attr_include.pass.sh to have an invalid platform and observe the failure.

@Mab879 Mab879 added the Test Suite Update in Test Suite. label Feb 5, 2025
@Mab879 Mab879 added this to the 0.1.77 milestone Feb 5, 2025
Copy link

codeclimate bot commented Feb 5, 2025

Code Climate has analyzed commit 82923c2 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 61.9% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Feb 6, 2025
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 added an invalid platform to a templated test scenarios and this test failed successfully. I also have checked that it still tests also in-rule test scenarios.

@jan-cerny jan-cerny merged commit 207d122 into ComplianceAsCode:master Feb 6, 2025
109 of 111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants