From 57a2c0f2f4ef384a040e328dcdb9ffc81c297ca9 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Mon, 12 Oct 2026 15:46:45 +0100 Subject: [PATCH 1/2] CCM-24432: fix tests --- tests/lib/constants/constants.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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" From 3c41f3ddb5da9f0a08127f047b74341fcded122c Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Tue, 13 Oct 2026 07:28:59 +0100 Subject: [PATCH 2/2] CCM-24432: fix tests --- azure/azure-release-pipeline.yml | 2 -- 1 file changed, 2 deletions(-) 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: