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

Disable logrotate timer in ensure_logrotate_activated tests #10375

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Mar 27, 2023

Description:

This is needed since #10343 added an OVAL check for the logrotate systemd timer OR'ed with the cron check.

We may want to adjust the OVAL (and this test) if we want to limit the checking of the timer to OSs that have it, seems to RHEL 9+, I have not checked Ubuntu or SUSE.

Rationale:

Fixes #10371

Reviewer Hints:

The logrotate timer is only in RHEL 9.

This is needed since ComplianceAsCode#10343 added test for the logrotate timer
@Mab879 Mab879 added bugfix Fixes to reported bugs. Test Suite Update in Test Suite. labels Mar 27, 2023
@Mab879 Mab879 added this to the 0.1.67 milestone Mar 27, 2023
@Mab879 Mab879 changed the base branch from master to stabilization-v0.1.67 March 27, 2023 20:45
@github-actions
Copy link

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

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@codeclimate
Copy link

codeclimate bot commented Mar 27, 2023

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

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Mar 28, 2023
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.

This is a backport of already merged PR #10376 to the stabilization branch.

@jan-cerny jan-cerny merged commit 2f04dcc into ComplianceAsCode:stabilization-v0.1.67 Mar 28, 2023
26 of 29 checks passed
@Mab879 Mab879 deleted the fix_10371 branch March 28, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes to reported bugs. Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule ensure_logrotate_activated fails a test scenario
2 participants