We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actually we are doing requests against Gerrit using sub-processes, forcing the user to add private keys manually in the host.
Using a library like paramiko would allow us to add the key as a parameter for the back-end, and automatize the process.
The text was updated successfully, but these errors were encountered:
Merge branch 'fix-29-init' of 'git://github.com/andygrunwald/sortingh…
20ed55d
…at.git' Fix chaoss#29 Closes chaoss#59 Merges chaoss#59
A new python library that mocks a ssh server could come in handy: https://github.com/carletes/mock-ssh-server
import os from pytest import yield_fixture import mockssh @yield_fixture() def server(): users = { "sample-user": "/path/to/user-private-key, } with mockssh.Server(users) as s: yield s def test_ssh_session(server): for uid in server.users: with server.client(uid) as c: _, stdout, _ = c.exec_command("ls /") assert stdout.read()
Sorry, something went wrong.
No branches or pull requests
Actually we are doing requests against Gerrit using sub-processes, forcing the user to add private keys manually in the host.
Using a library like paramiko would allow us to add the key as a parameter for the back-end, and automatize the process.
The text was updated successfully, but these errors were encountered: