Centralize the SSH testing and make it more automatic.
Review Request #2330 — Created May 1, 2011 and submitted
Centralize the SSH testing and make it more automatic. SSH repository testing previously required a lot of setup, in terms of creating repositories, configuring the access to them in settings_local.py, and configuring SSH keys. Now we use bundled repositories, and skip the tests if the user's public key isn't in their ~/.ssh/authorized_keys file. We need the authorized key to run the tests. It's assumed if that file exists and the key is in it, SSH is configured on the system. Otherwise, the tests will fail.
All the unit tests passed, without needing my special repository VM or special SSH key setup. I just needed to have SSH turned on and echo ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys.
- Change Summary:
-
* Made the key required in is_authorized_key. * Changed the _, foo, _ to split()[1].
- Diff:
-
Revision 2 (+146 -68)