forked from slackhq/go-audit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test usage of user.Name when user has full name set
When a Linux user has a full name set, the Go user.Name field returns the full name, rather than the username. The audit_test uses this value for the output.file.user config, which causes the test to fail with an unexpected "Could not find uid for user" error returned by createFileOutput(). This patch fixes the test to use the Username field instead of the Name field.
- Loading branch information
David Ramos
committed
Jan 5, 2017
1 parent
cb7943e
commit fa66623
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters