SSH test helpers
This provides facilities to start SSH servers constrained to a single user and use them from `hg` commands, complete with host and user key pairs. `hgitaly.testing.tests.test_sshd` demonstrates a successful push using them, allowing the forthcoming tests for service methods using SSH to focus on their own business.
parent
5e726a46
No related branches found
No related tags found
Showing
- hgitaly/ssh.py 41 additions, 0 deletionshgitaly/ssh.py
- hgitaly/testing/__init__.py 9 additions, 0 deletionshgitaly/testing/__init__.py
- hgitaly/testing/data/authorized_keys 1 addition, 0 deletionshgitaly/testing/data/authorized_keys
- hgitaly/testing/data/id_ecdsa_user 38 additions, 0 deletionshgitaly/testing/data/id_ecdsa_user
- hgitaly/testing/data/known_hosts 1 addition, 0 deletionshgitaly/testing/data/known_hosts
- hgitaly/testing/data/ssh_host_ecdsa_key 9 additions, 0 deletionshgitaly/testing/data/ssh_host_ecdsa_key
- hgitaly/testing/data/ssh_host_ecdsa_key.pub 1 addition, 0 deletionshgitaly/testing/data/ssh_host_ecdsa_key.pub
- hgitaly/testing/data/sshd_config 17 additions, 0 deletionshgitaly/testing/data/sshd_config
- hgitaly/testing/ssh.py 31 additions, 0 deletionshgitaly/testing/ssh.py
- hgitaly/testing/sshd.py 109 additions, 0 deletionshgitaly/testing/sshd.py
- hgitaly/testing/tests/__init__.py 6 additions, 0 deletionshgitaly/testing/tests/__init__.py
- hgitaly/testing/tests/test_sshd.py 34 additions, 0 deletionshgitaly/testing/tests/test_sshd.py
hgitaly/ssh.py
0 → 100644
hgitaly/testing/__init__.py
0 → 100644
hgitaly/testing/data/authorized_keys
0 → 100644
hgitaly/testing/data/id_ecdsa_user
0 → 100644
hgitaly/testing/data/known_hosts
0 → 100644
hgitaly/testing/data/ssh_host_ecdsa_key
0 → 100644
hgitaly/testing/data/ssh_host_ecdsa_key.pub
0 → 100644
hgitaly/testing/data/sshd_config
0 → 100644
hgitaly/testing/ssh.py
0 → 100644
hgitaly/testing/sshd.py
0 → 100644
hgitaly/testing/tests/__init__.py
0 → 100644
hgitaly/testing/tests/test_sshd.py
0 → 100644
Please register or sign in to comment