Skip to content

(PA-4218) Updates macOS tests #8897

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

Merged
merged 2 commits into from
Mar 17, 2022

Conversation

mhashizume
Copy link
Contributor

Adding support for macOS 12 Monterey surfaced some issues with existing tests for macOS specifically. This PR

  • Removes macOS tests that are no longer relevant and
  • Expands an existing test to cover macOS 12 Monterey

Starting with macOS 10.14 Mojave, Apple require full disk access
(FDA) to make changes to certain system functionality, including
user ID (UID) and the `/home` directory. Granting FDA means either
manual user intervention or creating a Privacy Preferences
Policy Control Payload (PPPCP) profile through mobile device
management (MDM).

This means that these two tests (`should_modify_home.rb` and
`should_modify_uid.rb`) don't work on any version of macOS that
Puppet supports (10.14-11), so we no longer need them.
@mhashizume mhashizume requested a review from a team as a code owner March 17, 2022 18:23
@mhashizume mhashizume requested a review from a team March 17, 2022 18:23
@mhashizume mhashizume force-pushed the PA-4218/macos_12_tests branch 2 times, most recently from 5aebc88 to 7cce907 Compare March 17, 2022 18:41
@mhashizume mhashizume force-pushed the PA-4218/macos_12_tests branch from 7cce907 to 2f645e8 Compare March 17, 2022 18:44
This test excludes all versions of macOS starting from 10.15
Catalina. As Puppet dropped macOS 10.14 Mojave support last year,
we no longer have to use a regex matcher as every supported
version of macOS can be excluded.
@mhashizume mhashizume force-pushed the PA-4218/macos_12_tests branch from 2f645e8 to 270d762 Compare March 17, 2022 18:47
@mhashizume
Copy link
Contributor Author

@joshcooper thanks for the review, I made a minor change (changed the regex in ticket_8740_should_not_enumerate_root_directory.rb to simply exclude Mac altogether), would you mind taking another quick look when you have the chance?

Thank you!

@joshcooper joshcooper merged commit 68a96a9 into puppetlabs:6.x Mar 17, 2022
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.

2 participants