Skip to content

Merge pull request #1004 from NHSDigital/v4.52.0

801bb2f
Select commit
Loading
Failed to load commit list.
Merged

Release 4.52.0 #1008

Merge pull request #1004 from NHSDigital/v4.52.0
801bb2f
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Communications-Manager-Nightly-Production-Sandbox failed Oct 2, 2025 in 4m 6s

Build #release+399212 had test failures

Details

Tests

  • Failed: 1 (0.07%, 1 new, 0 recurring)
  • Passed: 1,342 (99.93%)
  • Other: 0 (0.00%)
  • Total: 1,343

Annotations

Check failure on line 3656 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Communications-Manager-Nightly-Production-Sandbox

Build log #L3656

Bash exited with code '2'.

Check failure on line 18 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Communications-Manager-Nightly-Production-Sandbox

Build log #L18

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 1 in test_404_report_not_found[None]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Communications-Manager-Nightly-Production-Sandbox

test_404_report_not_found[None]

AssertionError: Unexpected 502
Raw output
nhsd_apim_proxy_url = 'https://sandbox.api.service.nhs.uk/comms'
correlation_id = None

    @pytest.mark.sandboxtest
    @pytest.mark.parametrize("correlation_id", CORRELATION_IDS)
    def test_404_report_not_found(nhsd_apim_proxy_url, correlation_id):
    
        """
        .. include:: ../../partials/not_found/test_404_nhsapp_accounts_report_not_found.rst
        """
        resp = requests.get(f"{nhsd_apim_proxy_url}{NHSAPP_ACCOUNTS_ENDPOINT}", headers={
            "X-Correlation-Id": correlation_id,
            "Accept": "application/vnd.api+json"
        }, params={
            ODS_CODE_PARAM_NAME: NOT_FOUND_ODS_CODE,
        })
    
>       Assertions.assert_error_with_optional_correlation_id(
            resp,
            404,
            Generators.generate_error(constants.ERROR_NHS_APP_ACCOUNTS_REPORT_NOT_FOUND),
            correlation_id
        )

tests/sandbox/nhsapp_accounts/test_404.py:51: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/lib/assertions.py:268: in assert_error_with_optional_correlation_id
    error_handler.handle_retry(resp)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

resp = <Response [502]>

    @staticmethod
    def handle_retry(resp):
        if resp.status_code in codes_to_retry:
>           raise AssertionError(f'Unexpected {resp.status_code}')
E           AssertionError: Unexpected 502

tests/lib/error_handler.py:10: AssertionError