8000 Fix `variables=` for `chronyd_configure_pool_and_server` tests by comps · Pull Request #13252 · ComplianceAsCode/content · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix variables= for chronyd_configure_pool_and_server tests #13252

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

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

comps
Copy link
Collaborator
@comps comps commented Mar 28, 2025

Description:

This fixes multiple lines of # variables = metadata in chronyd_configure_pool_and_server by putting them on a single line, which the ssg_test_suite should be able to deal with (comma separation with =).

Rationale:

Multi-line variables are not supported, see relevant code in Automatus.

The variables = [] array is re-set to empty when a new line is encountered, which is consistent with every other test metadata type.

Any proper future multi-line support in ssg_test_suite should probably be consistently done across all metadata (parameter) types.

Multi-line 'variables' are not supported, see

https://github.com/ComplianceAsCode/content/blob/8b4019cc/tests/ssg_test_suite/rule.py#L620-L634

The 'variables = []' array is re-set to empty when a new line is
encountered, which is consistent with every other test metadata type.

Any proper future multi-line support in ssg_test_suite should probably
be consistently done across all metadata (parameter) types.

Signed-off-by: Jiri Jaburek <comps@nomail.dom>
Copy link
codeclimate bot commented Mar 28, 2025

Code Climate has analyzed commit 1971a7f 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 62.0% (0.0% change).

View more on Code Climate.

@Mab879 Mab879 added this to the 0.1.77 milestone Mar 28, 2025
@Mab879 Mab879 added the Test Suite Update in Test Suite. label Mar 28, 2025
Copy link
Member
@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

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

Thanks!

@Mab879 Mab879 merged commit 565b407 into ComplianceAsCode:master Mar 28, 2025
109 of 110 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
0