Skip to content

Commit

Permalink
switched scope test --> emails=False
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 26, 2024
1 parent e5a7182 commit 06c262a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bbot/test/test_step_2/module_tests/test_module_securitytxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ def check(self, module_test, events):
assert not any(str(e.data) == "[email protected]" for e in events)


class TestSecurityTxtInScopeFalse(TestSecurityTxt):
class TestSecurityTxtEmailsFalse(TestSecurityTxt):
config_overrides = {
"scope": {"report_distance": 1},
"modules": {"securitytxt": {"in_scope_only": False}},
"modules": {"securitytxt": {"emails": False}},
}

def check(self, module_test, events):
assert any(
e.type == "EMAIL_ADDRESS" and e.data == "[email protected]" for e in events
), "Failed to detect email address"
assert not any(e.type == "EMAIL_ADDRESS" for e in events), "Detected email address when emails=False"
assert any(
e.type == "URL_UNVERIFIED" and e.data == "https://vdp.example.com/" for e in events
), "Failed to detect URL"
Expand Down

0 comments on commit 06c262a

Please sign in to comment.