Merge lp:~jml/launchpad/codehosting-to-services into lp:launchpad
| Status: | Merged |
|---|---|
| Merged at revision: | not available |
| Proposed branch: | lp:~jml/launchpad/codehosting-to-services |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~jml/launchpad/extract-ssh-server-auth |
| Diff against target: |
594 lines (+191/-134) (has conflicts) 18 files modified
daemons/sftp.tac (+1/-1) lib/lp/codehosting/sftp.py (+1/-23) lib/lp/codehosting/sshserver/daemon.py (+3/-3) lib/lp/codehosting/sshserver/session.py (+19/-75) lib/lp/codehosting/sshserver/tests/test_daemon.py (+2/-2) lib/lp/services/sshserver/__init__.py (+8/-0) lib/lp/services/sshserver/accesslog.py (+1/-1) lib/lp/services/sshserver/auth.py (+6/-5) lib/lp/services/sshserver/events.py (+2/-13) lib/lp/services/sshserver/service.py (+3/-3) lib/lp/services/sshserver/session.py (+79/-0) lib/lp/services/sshserver/sftp.py (+35/-0) lib/lp/services/sshserver/tests/__init__.py (+8/-0) lib/lp/services/sshserver/tests/keys/ssh_host_key_rsa (+15/-0) lib/lp/services/sshserver/tests/keys/ssh_host_key_rsa.pub (+1/-0) lib/lp/services/sshserver/tests/test_accesslog.py (+4/-4) lib/lp/services/sshserver/tests/test_auth.py (+2/-3) lib/lp/services/sshserver/tests/test_events.py (+1/-1) Text conflict in daemons/sftp.tac Text conflict in lib/lp/services/sshserver/accesslog.py Text conflict in lib/lp/services/sshserver/service.py Text conflict in lib/lp/services/sshserver/tests/test_auth.py |
| To merge this branch: | bzr merge lp:~jml/launchpad/codehosting-to-services |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Paul Hummer (community) | code | 2010-04-15 | Approve on 2010-04-15 |
|
Review via email:
|
|||
Commit Message
Create a new generic Launchpad SSH server in lp.services.
Description of the Change
As best as I can tell, this branch completes the work done in the mega lp:~jml/launchpad/ssh-key-auth branch. It moves all of the generic code out of lp.codehosting.
Most of the changes are simple module moves. There are some exceptions though.
* PatchedSSHSession is extracted from lp.codehosting.
* Likewise, FileTransferServer is moved out of lp.codehosting.sftp and into lp.services. It is modified slightly so that the SFTPStarted event is generated from it. Behaviour should be equivalent to current behaviour.
* BazaarSSHStarted and BazaarSSHClosed events are moved to the lp.codehosting session module. Relevant docstrings are updated.
* I had to copy some keys over for testing.
* Some tests and docstrings were tweaked to refer to Launchpad SSH server, rather than codehosting.
I look forward to your review.
jml

<rockstar> jml, all of the codehosting- to-services branch is moves right? No real changes? sshkeygen. com/
<jml> rockstar, pretty much. except for what I mention in my comment.
<rockstar> jml, okay, so basically just docstrings and test comments got changed (outside of imports)
<jml> rockstar, that sounds right.
<rockstar> jml, okay. Looking now.
<rockstar> jml, your comment says you had to copy keys over. Why couldn't you move them?
<jml> rockstar, they are also used by the codehosting acceptance tests.
<rockstar> jml, hm. Do you really think it's wise to duplicate those keys?
<jml> rockstar, why would it be unwise?
<rockstar> jml, duplication. It's not code, this I know. But duplication in general can become unfun.
<jml> rockstar, you want me to generate a new RSA SSH key pair?
<jml> rockstar, it's pretty easy. there's even a cool website that'll do it for you!
<rockstar> jml, no, we can use the same one, but I'm wondering if we could symlink or something.
<rockstar> jml, that sounds like a very silly website. :)
<jml> rockstar, it is – http://
* rockstar groans
<jml> rockstar, anyway, I can make them symlinks if you want. it doesn't matter much either way to me
<rockstar> jml, actually, it doesn't matter much to me either. The question was more or less one of Kiko's "exploratory" questions. If you're okay with it, I am.
<jml> rockstar, cool.