summaryrefslogtreecommitdiff
path: root/tests/users-groups.nix
AgeCommit message (Collapse)Author
2024-10-28users: create users with home directory `/var/empty` by defaultMichael Hoang
2024-10-28users: replace FDA check with more fine grained permissions checkMichael Hoang
2024-10-27users: allow `shell` to be managed by macOSMichael Hoang
2024-10-27users: change default shell to `/usr/bin/false` to match macOSMichael Hoang
2024-10-27users: allow `home` to be managed by macOSMichael Hoang
2024-10-27users: update properties on known usersMichael Hoang
2024-10-27tests: fix old test getting messed up in refactorMichael Hoang
https://github.com/LnL7/nix-darwin/commit/2788e4fa981566e34fa40938705cd7f595f05e74#diff-0642dcb4e551dcf07032904ee7f6b7ea645db36939f159908ccb2b85a2bbd1b8L53
2024-10-27tests: fix negative asserts with `grep` not workingMichael Hoang
Using `grep -v` without `-z` will return 0 even if there is a match found as all the non-matching lines will be matched. Instead of using `grep -vqz`, `(! grep ...)` is more readable. The brackets are necessary as `! grep` will not trigger `set -e`[0], so we run it inside a subshell to use its non-zero exit code. [0]: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin
2024-10-23users: ensure Full Disk Access is granted before trying to delete usersMichael Hoang
2024-10-22users: use `lib.escapeShellArg` for group descriptionMichael Hoang
2024-10-22users: use `lib.escapeShellArg` for `createhomedir`Michael Hoang
2024-10-22users: use `lib.escapeShellArg` for `dscl` pathsMichael Hoang
2024-10-22users: use `lib.escapeShellArgs` instead of custom versionMichael Hoang
2024-10-22users: use `lib.escapeShellArgs` for `sysadminctl -addUser`Michael Hoang
2024-10-22users: use `lib.escapeShellArg` for `sysadminctl -deleteUser`Michael Hoang
2024-10-22Use `sysadminctl` instead of `dscl`Andrew Lubawy
Co-authored-by: Michael Hoang <enzime@users.noreply.github.com>
2024-09-10tests/users-groups: update for `lib.escapeShellArg` changeEmily
2024-01-20fix: set shell for new users, and only known onesHraban Luyat
2019-02-24users: gate the creation with an option, false by default and use createhomedirWael M. Nasreddine
2018-01-16users: test isHidden = false;Daiderd Jordan
2018-01-14users: add test for group membershipDaiderd Jordan
2018-01-13users: update test for user creation/deletionDaiderd Jordan
2018-01-13users: add test for group creation/deletionDaiderd Jordan