pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.85k stars 374 forks source link

End-to-end SSH tests #735

Closed Fizzadar closed 2 years ago

Fizzadar commented 2 years ago

Fire up a Docker container running SSHD, execute against it.

Can probably do this for chroot and potentially dockerssh connectors as well.

Specifically would catch issues like https://github.com/Fizzadar/pyinfra/commit/fd1c546d00f10d5556be5a0116ed69dc50be8b78 where the unit tests mock out calls on the "edge" of pyinfra (where it calls out to 3rd party stuff).

Fizzadar commented 2 years ago

Added & running