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

Fix Automatus --duplicate-templates #9766

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

jan-cerny
Copy link
Collaborator

This option stopped working during the rework and now we are adding it back, it basically will not save used templated test scenarios to the list of used templated scenarios which will cause that the templated scenarios will be used for each rule. This commit also removes unused code because the method _rule_template_been_tested isn't called anywhere.

Fixes: #9762

This option stopped working during the rework and now we are adding it
back, it basically will not save used templated test scenarios to the
list of used templated scenarios which will cause that the templated
scenarios will be used for each rule. This commit also removes unused
code because the method _rule_template_been_tested isn't called
anywhere.

Fixes: ComplianceAsCode#9762
@jan-cerny jan-cerny added the Test Suite Update in Test Suite. label Nov 4, 2022
@jan-cerny jan-cerny added this to the 0.1.65 milestone Nov 4, 2022
@github-actions
Copy link

github-actions bot commented Nov 4, 2022

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

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@codeclimate
Copy link

codeclimate bot commented Nov 4, 2022

Code Climate has analyzed commit d7a32b1 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 46.7% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny requested a review from mildas November 4, 2022 16:15
@mildas mildas self-assigned this Nov 7, 2022
Copy link
Contributor

@mildas mildas left a comment

Choose a reason for hiding this comment

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

Amazing, it fixed it. Thank you!

@mildas mildas merged commit d40fc21 into ComplianceAsCode:master Nov 7, 2022
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.

Automatus --duplicate-templates option doesn't work
2 participants