8000 systemd_mount_enabled template: enable mount in passing test scenario by vojtapolasek · Pull Request #13340 · ComplianceAsCode/content · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

systemd_mount_enabled template: enable mount in passing test scenario #13340

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

Conversation

vojtapolasek
Copy link
Collaborator

Description:

  • run the enable systemd command in the passing test scenario

Rationale:

  • the OVAL expect the unit to b enabled, but the test scenario did not do this in the past

Review Hints:

Use automatus.

@vojtapolasek vojtapolasek added the Test Suite Update in Test Suite. label Apr 16, 2025
@vojtapolasek vojtapolasek added this to the 0.1.77 milestone Apr 16, 2025
Copy link
codeclimate bot commented Apr 16, 2025

Code Climate has analyzed commit 3048498 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 Apr 16, 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.

The tests pass for me.

@vojtapolasek Does this change fix any fail? If yes, how can I reproduce the fail?

@vojtapolasek
Copy link
Collaborator Author

@jan-cerny I think you can reproduce the fail by ensuring that before running the test scenario, the tmp.mount is not enabled... e.g. it is active, but not enabled. This can happen, at least it happened for me on my test machine.

@jan-cerny jan-cerny merged commit 1c4ca4f into ComplianceAsCode:master Apr 16, 2025
108 of 109 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