-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added case insensitive search for emails Signed-off-by: Harold Wanyama <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,16 @@ func TestUserIsApproved(t *testing.T) { | |
}, | ||
expectedIsApproved: true, | ||
}, | ||
{ | ||
name: "Test user email case - email approval", | ||
user: &v1Models.User{ | ||
Emails: []string{"[email protected]"}, | ||
}, | ||
cclaSignature: &v1Models.Signature{ | ||
EmailApprovalList: []string{"[email protected]"}, | ||
}, | ||
expectedIsApproved: true, | ||
}, | ||
} | ||
|
||
for _, tc := range testCases { | ||
|