This repository was archived by the owner on Jun 13, 2023. It is now read-only.
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
Unable to run the test suite - No suitable handler for message of type #44
Open
Description
Stacktrace for reference
apts |
apts | Attempting to load configuration from file: /aries-protocol-test-suite/config.toml
apts |
apts | ============================= test session starts ==============================
apts | platform linux -- Python 3.6.9, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
apts | cachedir: .pytest_cache
apts | rootdir: /aries-protocol-test-suite, configfile: pytest.ini
apts | plugins: asyncio-0.14.0
apts | collecting ... collected 21 items / 11 deselected / 10 selected
apts |
apts | protocol_tests/connection/test_connection.py::test_connection_started_by_tested_agent FAILED [ 10%]
apts |
apts | =================================== FAILURES ===================================
apts | ___________________ test_connection_started_by_tested_agent ____________________
apts |
apts | inviter = <async_generator object _inviter at 0x7f5b0d6f0528>
apts |
apts | @pytest.mark.asyncio
apts | @meta(protocol='connections', version='1.0',
apts | role='inviter', name='can-be-inviter')
apts | async def test_connection_started_by_tested_agent(inviter):
apts | """Test a connection as started by the agent under test."""
apts | > await run(inviter)
apts |
apts | protocol_tests/connection/test_connection.py:326:
apts | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
apts | protocol_tests/__init__.py:234: in run
apts | async for _event, *_data in generator:
apts | protocol_tests/connection/test_connection.py:296: in _inviter
apts | timeout=30
apts | /usr/local/lib/python3.6/dist-packages/aries_staticagent/static_connection.py:334: in send_and_await_reply_async
apts | anoncrypt=anoncrypt,
apts | /usr/local/lib/python3.6/dist-packages/aries_staticagent/static_connection.py:314: in send_async
apts | partial(_error_handler, self)
apts | /usr/local/lib/python3.6/dist-packages/aries_staticagent/utils.py:71: in http_send
apts | await response_handler(body)
apts | /usr/local/lib/python3.6/dist-packages/aries_staticagent/static_connection.py:305: in _response_handler
apts | await self.handle(msg)
apts | /usr/local/lib/python3.6/dist-packages/aries_staticagent/static_connection.py:266: in handle
apts | await self._dispatcher.dispatch(msg, self)
apts | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
apts |
apts | self = <aries_staticagent.dispatcher.Dispatcher object at 0x7f5b0d65a470>
apts | msg = {'@type': 'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/response', '@id': '97d4758c-ee6e-4091-96cf-df3049e0d17d...5kcG9pbnQiOiAiaHR0cDovL3Rlc3QtY2VudGVyLmxvY2FsaG9zdCJ9XX19', 'signer': 'EMimZ99MRykjP2ZqbqSZJg86AN5EYmzCv8qzKhzCzibz'}}
apts | args = (<aries_staticagent.static_connection.StaticConnection object at 0x7f5b0d65a390>,)
apts | kwargs = {}, handler = None
apts |
apts | async def dispatch(self, msg: Message, *args, **kwargs):
apts | """ Dispatch message to handler. """
apts | handler = self.select_handler(msg)
apts | if not handler:
apts | raise NoRegisteredHandlerException(
apts | 'No suitable handler for message of type {}'.format(
apts | > msg.type
apts | )
apts | )
apts | E aries_staticagent.dispatcher.NoRegisteredHandlerException: No suitable handler for message of type did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/response
apts |
apts | /usr/local/lib/python3.6/dist-packages/aries_staticagent/dispatcher.py:107: NoRegisteredHandlerException
apts | ---------------------------- Captured stdout setup -----------------------------
apts | Setup: config: {'host': 'apts', 'port': 4000, 'endpoint': 'http://apts:4000', 'backchannel': 'aut.AUTBackchannel', 'provider': 'indy_provider.IndyProvider', 'ledger_name': 'indy.igrant', 'ledger_url': 'https://indy.igrant.io/genesis', 'ledger_apts_seed': '000000000000000000000000STEWARD1', 'tests': ['connections.*', 'issue-credential.*', 'present-proof.*'], 'subject': {'name': 'AGENT UNDER TEST', 'version': '1.0.0', 'endpoint': 'http://test-center.localhost'}, 'save_path': None}
apts | =============================== warnings summary ===============================
apts | ../usr/lib/python3/dist-packages/setuptools/depends.py:2
apts | /usr/lib/python3/dist-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
apts | import imp
apts |
apts | -- Docs: https://docs.pytest.org/en/stable/warnings.html
apts |
apts | =============================== Interop Profile ================================
apts |
apts | {
apts | "@type": "Aries Test Suite Interop Profile v1",
apts | "suite_version": "0.1.0",
apts | "under_test_name": "AGENT UNDER TEST",
apts | "under_test_version": "1.0.0",
apts | "test_time": "2021-02-22T19:10:52",
apts | "results": [
apts | {
apts | "name": "connections,1.0,inviter,can-be-inviter",
apts | "description": "Test a connection as started by the agent under test.",
apts | "pass": false
apts | }
apts | ]
apts | }
apts | =========================== short test summary info ============================
apts | FAILED protocol_tests/connection/test_connection.py::test_connection_started_by_tested_agent
apts | !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
apts | ================= 1 failed, 11 deselected, 1 warning in 0.26s ==================
apts exited with code 1
Metadata
Metadata
Assignees
Labels
No labels