We duplicate MockUserLookup in a number of test functions. We should unify these into a single struct in a test helper package.
// Duplicates code from multipolicyloader_test.go
type MockUserLookup struct {
// User is returned on any call to Lookup() if Error is nil
User *user.User
// Error is returned on any call to Lookup() if non-nil
Error error
}
We will likely want to support setting more than one user
// MockUsersLookup implements commands.UserLookup for testing
type MockUsersLookup struct {
Users map[string]*user.User
Error error
}