Skip to content

Enable pkg tests for systemd status on upgrade #67968

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

Draft
wants to merge 14 commits into
base: 3006.x
Choose a base branch
from

Conversation

barneysowood
Copy link
Collaborator

What does this PR do?

Enables tests for systemd status (enabled, active etc). These were added in #66218 but disabled. We should actually be testing this.

Spotted this when reviewing #66688 - I was surprised that wasn't breaking tests. Assume the intent was that this should be enabled once #66218 was merged and pkg tests were running again

Previous Behavior

Tests for maintaining status of systemd services on upgrade were not being run

New Behavior

Tests are now being run

Merge requirements satisfied?

N/A

Commits signed with GPG?

Yes/No

@barneysowood barneysowood self-assigned this Apr 17, 2025
@barneysowood barneysowood force-pushed the enable-pkg-systemd-tests branch from 31382c6 to ebdaa0c Compare May 6, 2025 14:11
@barneysowood barneysowood force-pushed the enable-pkg-systemd-tests branch from ebdaa0c to a02bdef Compare May 7, 2025 17:06
@barneysowood barneysowood force-pushed the enable-pkg-systemd-tests branch from a02bdef to e514927 Compare May 7, 2025 19:28
Removes tests for services maintaing active/inactive states over
upgrades as this functionality was removed from the packages (saltstack#66688)
Adds a fixture to disable /usr/sbin/policy-rc.d - on the container
images we're using this returns an exitcode of 1001, which prevents dpkg
from running service restarts on installs/upgrades, which makes the
system behave differently to a real system.
Adds test for masking services to ensure that is preserved on upgrade.
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.

1 participant