Skip to content

Mesh-2092: prettify message

82c8a26
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

MESH-2092 Bump starlette from 0.48.0 to 0.49.1 #199

Mesh-2092: prettify message
82c8a26
Select commit
Loading
Failed to load commit list.
GitHub Actions / junit reports failed Jan 20, 2026 in 0s

187 tests run, 186 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 158 in src/mesh_sandbox/tests/java_client_tests.py

See this annotation in the file changed.

@github-actions github-actions / junit reports

java_client_tests.test_basic_send_and_receive[6.3.6]

AssertionError: assert <Element DTSId at 0x7fb9f5345dc0> == 'NOT THE MESSAGE ID BREAKING'
Raw output
base_uri = 'http://localhost:53931', version = '6.3.6'

    @pytest.mark.parametrize("version", ["6.3.6"])
    def test_basic_send_and_receive(base_uri: str, version: str):  # pylint: disable=too-many-locals
        base_dir, client_args = configure_client(base_uri, version)
    
        sender, recipient = _CANNED_MAILBOX1, _CANNED_MAILBOX2
    
        configure_mailboxes(base_dir, [sender, recipient])
    
        message = f"test-{uuid4().hex}".encode()
        workflow_id = uuid4().hex
        subject = uuid4().hex
        local_id = uuid4().hex
    
        sent_file = send_message(message, sender, recipient, workflow_id, subject, local_id, base_dir)
    
        run_process_and_terminate_after(client_args, sleep_for=2)
        run_process_and_terminate_after(client_args, sleep_for=2)
    
        sender_dir = os.path.join(base_dir, f"data/{sender}")
        recipient_dir = os.path.join(base_dir, f"data/{recipient}")
    
        assert sent_file
        assert os.path.exists(f"{sender_dir}/SENT/{sent_file}.dat")
        assert os.path.exists(f"{sender_dir}/SENT/{sent_file}.ctl")
    
>       message_id = find_sent_message_id(f"{sender_dir}/SENT/{sent_file}.ctl")
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/mesh_sandbox/tests/java_client_tests.py:187: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

ctl_file = '/home/runner/work/mesh-sandbox/mesh-sandbox/java_client/6.3.6/data/X26ABC1/SENT/79e43869d80e4ea9acf188828833e0de.ctl'

    def find_sent_message_id(ctl_file: str) -> str:
        parser = etree.XMLParser(remove_blank_text=True, resolve_entities=False)
        root = cast(_ElementTree, etree.parse(ctl_file, parser)).getroot()
        message_id = root.find("DTSId")
>       assert message_id == "NOT THE MESSAGE ID BREAKING"
E       AssertionError: assert <Element DTSId at 0x7fb9f5345dc0> == 'NOT THE MESSAGE ID BREAKING'

src/mesh_sandbox/tests/java_client_tests.py:158: AssertionError