qemu-e2k/python/tests
John Snow 68a6cf3ffe python/aqmp: remove _new_session and _establish_connection
These two methods attempted to entirely envelop the logic of
establishing a connection to a peer start to finish. However, we need to
break apart the incoming connection step into more granular steps. We
will no longer be able to reasonably constrain the logic inside of these
helper functions.

So, remove them - with _session_guard(), they no longer serve a real
purpose.

Although the public API doesn't change, the internal API does. Now that
there are no intermediary methods between e.g. connect() and
_do_connect(), there's no hook where the runstate is set. As a result,
the test suite changes a little to cope with the new semantics of
_do_accept() and _do_connect().

Lastly, take some pieces of the now-deleted docstrings and move
them up to the public interface level. They were a little more detailed,
and it won't hurt to keep them.

Signed-off-by: John Snow <jsnow@redhat.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20220225205948.3693480-4-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2022-03-07 14:36:41 -05:00
..
flake8.sh
iotests-mypy.sh python: Add iotest linters to test suite 2021-11-01 11:54:59 -04:00
iotests-pylint.sh Python: add setuptools v60.0 workaround 2022-02-23 17:07:26 -05:00
isort.sh
mypy.sh
protocol.py python/aqmp: remove _new_session and _establish_connection 2022-03-07 14:36:41 -05:00
pylint.sh Python: add setuptools v60.0 workaround 2022-02-23 17:07:26 -05:00