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 test scenarios for rsyslog_remote_tls #4788

Merged
merged 2 commits into from
Sep 5, 2019

Conversation

jan-cerny
Copy link
Collaborator

This rule uses a complex regular expression so it might be beneficial to cover the rule by few test scenarios.

@jan-cerny jan-cerny added this to the 0.1.47 milestone Sep 2, 2019
This rule uses a complex regular expression so it might be beneficial
to cover the rule by few test scenarios.
@jan-cerny jan-cerny force-pushed the test_rsyslog_remote_tls branch from 1b36259 to d3f1765 Compare September 4, 2019 13:59
@jan-cerny
Copy link
Collaborator Author

I have rebased it on master and also moved it to the appropriate directory.

@matejak matejak self-assigned this Sep 5, 2019
@matejak
Copy link
Member

matejak commented Sep 5, 2019

Do we need that profile = line in the metadata? The test suite will pick the virtual (all) profile, which is OK in this case, as the rule is not parametrized.

@jan-cerny
Copy link
Collaborator Author

@matejak That's needed to use the test scenarios within SSGTS to test the specific rule.

When the profile keyword isn't specified in the header
the test harness will use the virtual (all) profile.
@jan-cerny
Copy link
Collaborator Author

@matejak I have removed profile IDs from the scenarios headers.

@matejak
Copy link
Member

matejak commented Sep 5, 2019

Those tests are valid and work as expected. Thank you for the PR!

@matejak matejak merged commit 67f0b6e into ComplianceAsCode:master Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants