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

Make systemdunitproperty probe test more independent #2067

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jan-cerny
Copy link
Member

The current test of the systemdunitproperty probe is relying on the assumption that the systemd-journald.service unit doesn't have the Conflicts property set. In Rawhide, this assumption is no longer true, because Conflicts is now set to soft-reboot.target by default. This change breaks our test. In this commit, we will make the test less dependent on actual property value. Instead, we will check a dummy property that is unlikely to occur.

Fixes: #2066

The current test of the `systemdunitproperty` probe is relying on the
assumption that the `systemd-journald.service` unit doesn't have the
`Conflicts` property set. In Rawhide, this assumption is no longer true,
because `Conflicts` is now set to `soft-reboot.target` by default. This
change breaks our test. In this commit, we will make the test less
dependent on actual property value. Instead, we will check a dummy
property that is unlikely to occur.

Fixes: OpenSCAP#2066
@jan-cerny
Copy link
Member Author

/packit retest-failed

1 similar comment
@jan-cerny
Copy link
Member Author

/packit retest-failed

@jan-cerny jan-cerny marked this pull request as ready for review December 21, 2023 14:04
@jan-cerny jan-cerny added this to the 1.3.10 milestone Dec 21, 2023
@jan-cerny jan-cerny added the test label Dec 21, 2023
@matusmarhefka matusmarhefka self-assigned this Dec 22, 2023
@matusmarhefka matusmarhefka merged commit 996f5a5 into OpenSCAP:maint-1.3 Dec 22, 2023
18 checks passed
@jan-cerny jan-cerny deleted the issue2066 branch January 4, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests for systemdunitproperty probe fail on Rawhide
2 participants