mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Merge pull request #4088 from alphagov/security-policy
Add security policy page
This commit is contained in:
13
tests/app/main/views/test_security_policy.py
Normal file
13
tests/app/main/views/test_security_policy.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize('url', [
|
||||
'/security.txt',
|
||||
'/.well-known/security.txt',
|
||||
])
|
||||
def test_security_policy_redirects_to_policy(client_request, url):
|
||||
client_request.get_url(
|
||||
url,
|
||||
_expected_status=302,
|
||||
_expected_redirect="https://vdp.cabinetoffice.gov.uk/.well-known/security.txt",
|
||||
)
|
||||
@@ -212,6 +212,7 @@ EXCLUDED_ENDPOINTS = tuple(map(Navigation.get_endpoint_with_blueprint, {
|
||||
'roadmap',
|
||||
'save_contact_list',
|
||||
'security',
|
||||
'security_policy',
|
||||
'send_files_by_email',
|
||||
'send_files_by_email_contact_details',
|
||||
'send_from_contact_list',
|
||||
|
||||
Reference in New Issue
Block a user