-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update USERNAME event type to fall back to EMAIL_ADDRESS
- Loading branch information
1 parent
c7510d5
commit 54a26ed
Showing
3 changed files
with
17 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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"id": "4363462346", | ||
"email": "[email protected]", | ||
"ip_address": "", | ||
"username": "", | ||
"username": "[email protected]", | ||
"password": "", | ||
"hashed_password": "$2a$12$pVmwJ7pXEr3mE.DmCCE4fOUDdeadbeefd2KuCy/tq1ZUFyEOH2bve", | ||
"name": "Bob Smith", | ||
|
@@ -46,8 +46,11 @@ async def setup_before_prep(self, module_test): | |
) | ||
|
||
def check(self, module_test, events): | ||
assert len(events) == 7 | ||
for e in events: | ||
module_test.log.critical(e) | ||
assert len(events) == 8 | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]"]) | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]" and e.scope_distance == 1 and "affiliate" in e.tags] and e.source.data == "[email protected]") | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]"]) | ||
assert 1 == len( | ||
[ | ||
|