Skip to content

CCM-9353: Remove nodejs from toolversions

b2f1605
Select commit
Loading
Failed to load commit list.
Merged

CCM-9353: Refactor Assertions Class #1005

CCM-9353: Remove nodejs from toolversions
b2f1605
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Communications-Manager-Nightly-Internal-Dev-Sandbox failed Oct 8, 2025 in 2m 0s

Build #ccm-9353+402307 had test failures

Details

Tests

  • Failed: 2 (0.15%, 2 new, 0 recurring)
  • Passed: 1,341 (99.85%)
  • Other: 0 (0.00%)
  • Total: 1,343

Annotations

Check failure on line 3716 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Communications-Manager-Nightly-Internal-Dev-Sandbox

Build log #L3716

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-Internal-Dev-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_200_get_message_valid_accept_headers[2WL4pcpmKxYYblm3PSKVEqcmEPX-application/vnd.api+json]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Communications-Manager-Nightly-Internal-Dev-Sandbox

test_200_get_message_valid_accept_headers[2WL4pcpmKxYYblm3PSKVEqcmEPX-application/vnd.api+json]

assert False
 +  where False = isinstance(1, str)
Raw output
nhsd_apim_proxy_url = 'https://internal-dev-sandbox.api.service.nhs.uk/comms'
accept_headers = 'application/vnd.api+json'
message_ids = '2WL4pcpmKxYYblm3PSKVEqcmEPX'

    @pytest.mark.sandboxtest
    @pytest.mark.parametrize('accept_headers', constants.VALID_ACCEPT_HEADERS)
    @pytest.mark.parametrize('message_ids', get_200_message_ids())
    def test_200_get_message_valid_accept_headers(nhsd_apim_proxy_url, accept_headers, message_ids):
    
        """
        .. include:: ../../partials/happy_path/test_200_messages_message_id.rst
        """
        resp = requests.get(
            f"{nhsd_apim_proxy_url}{MESSAGES_ENDPOINT}/{message_ids}",
            headers={
                "Accept": accept_headers,
                "Content-Type": "application/json"
            },
        )
>       Assertions.assert_200_response_message(resp, nhsd_apim_proxy_url)

tests/sandbox/messages/get_message/test_success.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/lib/assertions/assertions.py:79: in assert_200_response_message
    get_message.assert_metadata(resp)
tests/lib/assertions/get_message.py:32: in assert_metadata
    assert_metadata_version(metadata[0].get("version"))
tests/lib/assertions/get_message.py:97: in assert_metadata_version
    assert_valid_string(version)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

string = 1

    def assert_valid_string(string):
        assert string is not None
        assert string != ""
>       assert isinstance(string, str)
E       assert False
E        +  where False = isinstance(1, str)

tests/lib/assertions/common.py:9: AssertionError

Check failure on line 1 in test_200_get_message_valid_accept_headers[2WL4pcpmKxYYblm3PSKVEqcmEPX-*/*]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Communications-Manager-Nightly-Internal-Dev-Sandbox

test_200_get_message_valid_accept_headers[2WL4pcpmKxYYblm3PSKVEqcmEPX-*/*]

assert False
 +  where False = isinstance(1, str)
Raw output
nhsd_apim_proxy_url = 'https://internal-dev-sandbox.api.service.nhs.uk/comms'
accept_headers = '*/*', message_ids = '2WL4pcpmKxYYblm3PSKVEqcmEPX'

    @pytest.mark.sandboxtest
    @pytest.mark.parametrize('accept_headers', constants.VALID_ACCEPT_HEADERS)
    @pytest.mark.parametrize('message_ids', get_200_message_ids())
    def test_200_get_message_valid_accept_headers(nhsd_apim_proxy_url, accept_headers, message_ids):
    
        """
        .. include:: ../../partials/happy_path/test_200_messages_message_id.rst
        """
        resp = requests.get(
            f"{nhsd_apim_proxy_url}{MESSAGES_ENDPOINT}/{message_ids}",
            headers={
                "Accept": accept_headers,
                "Content-Type": "application/json"
            },
        )
>       Assertions.assert_200_response_message(resp, nhsd_apim_proxy_url)

tests/sandbox/messages/get_message/test_success.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/lib/assertions/assertions.py:79: in assert_200_response_message
    get_message.assert_metadata(resp)
tests/lib/assertions/get_message.py:32: in assert_metadata
    assert_metadata_version(metadata[0].get("version"))
tests/lib/assertions/get_message.py:97: in assert_metadata_version
    assert_valid_string(version)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

string = 1

    def assert_valid_string(string):
        assert string is not None
        assert string != ""
>       assert isinstance(string, str)
E       assert False
E        +  where False = isinstance(1, str)

tests/lib/assertions/common.py:9: AssertionError