-
-
Notifications
You must be signed in to change notification settings - Fork 0
test: LaunchAgent lifecycle and file permission verification #89
Copy link
Copy link
Open
Description
Context
The plex-watchdog deploys a LaunchAgent, config files, and scripts with specific ownership and permission requirements. These cannot be tested in BATS unit tests but are critical for correct operation.
Scope
Evaluate testing approaches for:
- LaunchAgent validity: plutil -lint on the generated plist (could be a BATS test)
- File permissions: Verify mode 600 on token file and msmtp config
- Ownership: Verify operator:staff ownership on all deployed files
- LaunchAgent lifecycle: Load, verify running, unload, verify stopped
- Credential isolation: Verify non-operator users cannot read token/password files
Considerations
- Permission/ownership tests require running as admin with sudo
- LaunchAgent tests require the operator GUI session
- Some of these could be post-deployment verification in the setup script
- plex-watchdog-setup.sh already does basic verification in Section 6
Related
app-setup/plex-watchdog-setup.shSection 6 (Verification)docs/keychain-credential-management.md(credential pattern)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels