mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Restructure govuk-alerts endpoint to be internal
In response to: https://github.com/alphagov/notifications-api/pull/3305#pullrequestreview-726672421 Previously this was added among the public /v2 endpoints, but it's only meant for internal use. While only the govuk-alerts app would be able to access it, the location and /v2 URL suggested otherwise. This restructures the endpoint so it resembles other internal ones.
This commit is contained in:
@@ -81,7 +81,7 @@ def test_requires_admin_auth_should_allow_valid_token_for_request(client):
|
||||
def test_requires_govuk_alerts_auth_should_allow_valid_token_for_request(client):
|
||||
jwt_client_id = current_app.config['GOVUK_ALERTS_CLIENT_ID']
|
||||
header = create_internal_authorization_header(jwt_client_id)
|
||||
response = client.get('/v2/govuk-alerts', headers=[header])
|
||||
response = client.get('/govuk-alerts', headers=[header])
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user