Skip to content

Conversation

wyardley
Copy link
Contributor

Pull Request (PR) description

Update tests and metadata to support FreeBSD 12 and 13 This also helps us unit test the (otherwise untested) conditionals related to systems without systemd

We may still need to tweak the current python package name, but this is a start

Per @bastelfreak's suggestion, use os_facts to avoid confusion with
:facts

This Pull Request (PR) fixes the following issues

@wyardley wyardley added the enhancement New feature or request label May 11, 2023
@wyardley wyardley force-pushed the wyardley/freebsd branch from abbce5b to 6de4999 Compare May 11, 2023 17:04
Update tests and metadata to support FreeBSD 12 and 13
This also helps us unit test the (otherwise untested) conditionals
related to systems without systemd

We may still need to tweak the current python package name, but this is
a start

Per @bastelfreak's suggestion, use os_facts to avoid confusion with
:facts

Signed-off-by: William Yardley <[email protected]>
@wyardley wyardley force-pushed the wyardley/freebsd branch from 6de4999 to 8f5421a Compare May 11, 2023 17:18
it { is_expected.to contain_package('python') } if %w[RedHat Debian SUSE Archlinux].include?(facts[:os]['family'])
it { is_expected.to contain_package('python2') } if %w[FreeBSD OpenBSD].include?(facts[:os]['family'])
it { is_expected.to contain_package('python') } if %w[RedHat Debian SUSE Archlinux].include?(os_facts[:os]['family'])
it { is_expected.to contain_package('python38') } if %w[FreeBSD].include?(os_facts[:os]['family'])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: this may have changed by now - not sure. but at least it matches the current stuff in data, and can be adjusted in tests later if needed

@wyardley wyardley marked this pull request as ready for review May 11, 2023 17:38
@wyardley wyardley requested a review from bastelfreak May 11, 2023 17:38
context "on #{os}" do
let :facts do
facts
os_facts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bastelfreak this (and associated changes) is what you had in mind, right?

@wyardley wyardley requested a review from ekohl May 11, 2023 17:39
@bastelfreak bastelfreak merged commit 4686d02 into voxpupuli:master May 11, 2023
@wyardley wyardley mentioned this pull request May 13, 2023
@wyardley wyardley deleted the wyardley/freebsd branch May 19, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants