Simplify regex and fix tests for pamparse#1712
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe pull request introduces modifications to the PAM (Pluggable Authentication Modules) parsing functionality across multiple files in the project. The primary changes involve creating a new The modifications include updating function signatures in These changes provide a more robust and configurable approach to parsing PAM-related configuration and environment files. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Simplifies the regex so it doesn't have as many negations. Adds an option to pass the `/etc/passwd` values needed for pamparse so that we can mock them for the tests. Also allows us to only grab those values once at launch, since they shouldn't change.
Simplifies the regex so it doesn't have as many negations.
Adds an option to pass the
/etc/passwdvalues needed for pamparse so that we can mock them for the tests. Also allows us to only grab those values once at launch, since they shouldn't change.