diff --git a/azure/azure-release-pipeline.yml b/azure/azure-release-pipeline.yml index 861145c87..9687628c9 100644 --- a/azure/azure-release-pipeline.yml +++ b/azure/azure-release-pipeline.yml @@ -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: diff --git a/tests/lib/constants/constants.py b/tests/lib/constants/constants.py index bef22258e..164bede45 100644 --- a/tests/lib/constants/constants.py +++ b/tests/lib/constants/constants.py @@ -1,3 +1,7 @@ +import os + +import pytest + INT_URL = "https://int.api.service.nhs.uk/comms" PROD_URL = "https://api.service.nhs.uk/comms" VALID_ENDPOINTS = [ @@ -5,7 +9,14 @@ "/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"