Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ requests==2.32.5 ; python_version >= "3.11" and python_full_version < "3.14.0" \
six==1.17.0 ; python_version >= "3.11" and python_full_version < "3.14.0" \
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
--hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81
sniffio==1.3.1 ; python_version >= "3.11" and python_full_version < "3.14.0" \
--hash=sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2 \
--hash=sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc
starlette==0.50.0 ; python_version >= "3.11" and python_full_version < "3.14.0" \
--hash=sha256:9e5391843ec9b6e472eed1365a78c8098cfceb7a74bfd4d6b1c0c0095efb3bca \
--hash=sha256:a2a17b22203254bcbc2e1f926d2d55f3f9497f769416b3190768befe598fa3ca
Expand Down
2 changes: 1 addition & 1 deletion src/mesh_sandbox/tests/java_client_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
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 is not None
assert message_id == "NOT THE MESSAGE ID BREAKING"

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

View workflow job for this annotation

GitHub Actions / junit reports

java_client_tests.test_basic_send_and_receive[6.3.6]

AssertionError: assert <Element DTSId at 0x7fe7a07d0840> == 'NOT THE MESSAGE ID BREAKING'
Raw output
base_uri = 'http://localhost:44013', 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/5b9657f2ab6a4a5086c2d1dc23227d95.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 0x7fe7a07d0840> == 'NOT THE MESSAGE ID BREAKING'

src/mesh_sandbox/tests/java_client_tests.py:158: AssertionError
return cast(str, message_id.text)


Expand Down
Loading