Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions azure/azure-release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ extends:
jinja_templates:
ENVIRONMENT_TYPE: 'internal'
ERROR_ABOUT_LINK: ${{ variables.error_about_link }}
# ref has no app-response backend, point at the communications-manager-target instead
APP_RESPONSE_TARGET_SERVER: 'communications-manager-target'
post_deploy:
- template: ./templates/run-tests.yml
parameters:
Expand Down
13 changes: 12 additions & 1 deletion tests/lib/constants/constants.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import os

import pytest

INT_URL = "https://int.api.service.nhs.uk/comms"
PROD_URL = "https://api.service.nhs.uk/comms"
VALID_ENDPOINTS = [
"/v1/message-batches",
"/v1/messages",
"/v1/api/send",
"/v1/messages/1234",
"/v1/message-responses/11111111-1111-4111-8111-111111111111",
# ref has no app-response backend; the endpoint is deliberately disabled there
pytest.param(
"/v1/message-responses/11111111-1111-4111-8111-111111111111",
marks=pytest.mark.skipif(
os.environ.get("API_ENVIRONMENT") == "ref",
reason="message-responses endpoint is not available in ref"
),
),
]
CORS_METHODS = "GET, PUT, POST, PATCH, DELETE"
CORS_MAX_AGE = "3628800"
Expand Down
Loading