-
Notifications
You must be signed in to change notification settings - Fork 926
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Email: [email protected] | ||
Main info: https://www.mozilla.org/en-US/security/ | ||
Bounty program: https://www.mozilla.org/en-US/security/bug-bounty/ |
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 |
---|---|---|
|
@@ -59,6 +59,18 @@ def test_robots_no_redirect(self): | |
self.assertEqual(response.get("Content-Type"), "text/plain") | ||
|
||
|
||
class TestSecurityDotTxt(TestCase): | ||
def setUp(self): | ||
self.rf = RequestFactory() | ||
self.view = views.SecurityDotTxt() | ||
|
||
def test_no_redirect(self): | ||
response = self.client.get("/.well-known/security.txt", HTTP_HOST="www.mozilla.org") | ||
self.assertEqual(response.status_code, 200) | ||
self.assertEqual(response.get("Content-Type"), "text/plain") | ||
self.assertContains(response, "[email protected]") | ||
|
||
|
||
@override_settings(DEV=False) | ||
@patch("bedrock.mozorg.views.l10n_utils.render", return_value=HttpResponse()) | ||
class TestHomePageLocales(TestCase): | ||
|
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