Jeff Forcier
e25c7c4bdf
Merge branch '1.9' into 1.10
2013-09-27 21:29:51 -07:00
Jeff Forcier
2de9c72720
Merge branch '1.8' into 1.9
2013-09-27 21:29:41 -07:00
Jeff Forcier
83f44878ea
Fixed a typo in the license header of most files
...
Conflicts:
paramiko/proxy.py
2013-09-27 21:29:18 -07:00
Jeff Forcier
e0b401b8d9
Merge branch '152-int' into 152-real-int
...
Conflicts:
paramiko/hostkeys.py
requirements.txt
2013-09-27 17:50:25 -07:00
Jeff Forcier
05abcc40f5
Fix #179 - missing host variable in fqdn evaluation
2013-09-27 16:08:59 -07:00
Ethan Glasser-Camp
632129c427
Introduce ECDSA
...
This just adds tests; hooking this up with paramiko comes in the next
commit.
2013-03-25 12:19:21 -04:00
Jason R. Coombs
a3fe422198
Adding test capturing desired behavior and demonstrating issue #142 .
2013-03-04 08:45:00 -05:00
Jason R. Coombs
3a9119d78a
Delint test_sftp (remove unused imports and unused variables, remove excess whitespace, move imports to top, remove semicolon terminator)
...
--HG--
extra : source : 01df712a396de5fa7e1c0cc265411fdb2bbc5f41
2013-03-04 08:17:22 -05:00
Olle Lundberg
38767982cd
Fix broken test.
2013-02-28 12:36:03 +01:00
Olle Lundberg
109d2b200a
Add tests for identityfile parsing.
2013-02-28 12:31:53 +01:00
Olle Lundberg
c79e6a3f92
Whitespace fixes.
2013-02-28 12:14:59 +01:00
Olle Lundberg
b3d5156019
Add tests for proxycommand parsing.
2013-02-28 12:10:55 +01:00
Olle Lundberg
21689d9647
Add test for host negation.
2013-02-28 12:06:51 +01:00
Olle Lundberg
98ae4e975d
Updated tests for new ssh config format.
2013-02-28 12:05:03 +01:00
Michael Williamson
08109136b4
Replace useless version check with import from __future__
2013-01-05 00:15:26 +00:00
Michael Williamson
0b6aebb8a9
Verify Python version >= 2.6 before running context manager test
2013-01-05 00:05:58 +00:00
Michael Williamson
602250fdf9
Turn SFTPFile into a context manager
2013-01-04 23:43:15 +00:00
Jeff Forcier
191a5fc08c
Implement (& test for) ProxyCommand interpolation.
...
Forgot this earlier.
2012-11-05 17:44:25 -08:00
Jeff Forcier
928c062748
Add failing test(s) re ProxyCommand config parsing
2012-11-05 17:04:52 -08:00
Jeff Forcier
dfb45dec7f
Refactoring: it's a thing. Re #85
2012-10-15 13:21:58 -07:00
Jeff Forcier
7c12862b55
Only override unittest assertions when absolutely necessary.
...
Fixes #85
2012-10-15 12:57:39 -07:00
Jeff Forcier
2d7355da5e
Fix module import in tests
2012-09-25 18:11:30 -07:00
Jeff Forcier
e0be91a4c9
Fixes to failing-test teardowns to avoid more exceptions or hangs
...
(cherry picked from commit 734f3d6f42ef1564f473fee5526e0354fc8196fc)
Conflicts:
test.py
2012-09-24 18:59:33 -07:00
Douglas Turk
681a465f32
Handle/fix handling of EINTR errors in a few places.
...
(cherry picked from commit 351bdb72e539c373985e108c89f61839f3acdd2a)
Conflicts:
paramiko/agent.py
paramiko/client.py
paramiko/transport.py
2012-09-24 18:58:54 -07:00
Jan Brauer
d18b8cf1e9
Fix #33 - parse config as described by manpage
...
(cherry picked from commit 011805eae07ee7be6140b95f6d8669763c55b3d9)
2012-09-23 16:45:49 -07:00
Jeff Forcier
f04ddd420d
Fix broken tests
...
(cherry picked from commit 00e1072ee5abbc92b5df57e10cadb638d583d971)
Conflicts:
tests/test_util.py
2012-09-23 16:45:28 -07:00
Bobby Impollonia
ae3ecbe548
Remove comparison between int and str
...
The code had been doing 'n < self.__in_buffer' when it
wanted to be doing 'n < len(self.__in_buffer)'
In Python 2.x, this comparison (int < str) is always True.
I found this while porting to Python 3 where it raises
an error.
The code has been working without complaints because always
taking the true branch of this conditional is actually fine.
We don't need the false branch, so drop the check entirely.
(cherry picked from commit 0a013f829e
)
2012-09-23 16:18:57 -07:00
Gary van der Merwe
044e702998
Use Crypto.Random rather than Crypto.Util.RandomPool.
2010-08-03 00:13:08 +02:00
Robey Pointer
f67cea44d0
code style and fix test.
2010-04-13 18:52:29 -07:00
Larry Wright
b4ee844a3c
added functionality to skip verifying the file, which works around sftp servers that remove the file immediately after it's been closed.
2009-12-18 17:02:55 -06:00
Robey Pointer
71e872e23a
bug 426925: lookup host keys correctly when they have a different port.
2009-11-01 21:28:47 -08:00
Robey Pointer
931f71e627
bug 411099: chdir() isn't saving the cwd in a normalized way. added test.
2009-10-31 16:06:53 -07:00
Robey Pointer
60c6e94e7d
fix my email address to be the current one.
2009-07-19 19:45:02 -07:00
Robey Pointer
74b581c170
bug 300536: allow a really long banner before the SSH handshake.
2009-02-17 18:30:48 -08:00
Robey Pointer
fbfd8126c8
[project @ robey@lag.net-20080706230815-v2ybqxm237zw0wa0]
...
add a callback method that can be used to track get/put progress in
SFTPClient. suggested by Phil Schwartz.
2008-07-06 16:08:15 -07:00
Robey Pointer
c2ef48cf18
[project @ robey@lag.net-20080706203706-zqxb69qrcgyuf90n]
...
allow multiple key files to be specified in SSHClient.
suggested by Bernhard Walle.
2008-07-06 13:37:06 -07:00
Robey Pointer
305f5e09a5
[project @ robey@lag.net-20080604053906-vz5toqvlp5miqy1x]
...
merge deadlog bugfix from dwayne litzenberger.
2008-06-03 22:39:06 -07:00
Robey Pointer
f35a65bb0c
[project @ robey@lag.net-20080324065111-qv8icii767fqex9j]
...
fix some unit tests for windows
2008-03-23 23:51:11 -07:00
Robey Pointer
e5a1b4bf56
[project @ robey@lag.net-20080323025751-de0lem9pi4oydt2g]
...
bug 193779:
catch EOFError in auth, and turn it into an auth exception. add a unit
test to verify.
2008-03-22 19:57:51 -07:00
Robey Pointer
7854d600a7
[project @ robey@lag.net-20080323020709-ub8ya3xkh1ebywfa]
...
add exit_status_ready for justin cook.
2008-03-22 19:07:09 -07:00
Robey Pointer
c0fc67acc9
[project @ robey@lag.net-20080323020309-9bjcp7l2ygdu49d2]
...
slight tweak to test, make it verify the length too
2008-03-22 19:03:09 -07:00
Robey Pointer
419b11b741
[project @ robey@lag.net-20080323020054-ar5bmythf7fr5rgk]
...
in the test that verifies key renegotiation during a large file "put", also
do a "get" of the large file (with prefetch) to verify that nothing screwy
happens.
2008-03-22 19:00:54 -07:00
Robey Pointer
7ebda9a76d
[project @ robey@lag.net-20080220060030-jih2gfguzp6jbwog]
...
verify WarningPolicy is exported
2008-02-19 22:00:30 -08:00
Robey Pointer
9e67c45053
[project @ robey@lag.net-20080218051229-xtylb1poe246k2ci]
...
merge patch from Dwayne Litzenberger to fix unit tests on python 2.3.
2008-02-17 21:12:29 -08:00
Robey Pointer
d81e0038d2
[project @ robey@lag.net-20080218024139-i2t8y0f0dd93xjo1]
...
bug 189466: fix typo in osrandom.py (from patch in bug report) and add a
friggin' unit test.
2008-02-17 18:41:39 -08:00
Robey Pointer
888aa8d5b7
[project @ robey@lag.net-20080124045017-dfqiamorj356btrd]
...
fix the utf-8 password bug for good (aka bug 177117) and add unit tests
this time.
2008-01-23 20:50:17 -08:00
Robey Pointer
953392c0a1
[project @ robey@lag.net-20080124014121-95bt9p4n4k8lw72i]
...
remove some now-unneeded code.
2008-01-23 17:41:21 -08:00
Robey Pointer
31544301f5
[project @ robey@lag.net-20080124013849-jno9xkgwvvqrvuov]
...
split auth tests into their own file, and clean up the remaining transport
tests a bit (use existing refactoring).
2008-01-23 17:38:49 -08:00
Robey Pointer
ba1fd0d61b
[project @ robey@lag.net-20071231052950-8h599bnez3sgbf2e]
...
patch from david guerizec for direct-tcpip forwarding support, and a unit
test added by yours truly.
2007-12-30 21:29:50 -08:00
Robey Pointer
a3128c63de
[project @ robey@lag.net-20071230220403-9c9735x0tfr88dd8]
...
oops, fix typo.
2007-12-30 14:04:03 -08:00
Robey Pointer
92e92a9297
[project @ robey@lag.net-20071120052527-hloi0b30yngbay0x]
...
add send_ready() and a unit test.
2007-11-20 00:25:27 -05:00
Robey Pointer
758c18a28b
[project @ robey@lag.net-20071029030520-ozmne7y4l6037m8h]
...
bug discovered while porting to jaramiko: old-style gex wasn't creating
the proper hash. fixed.
2007-10-28 20:05:20 -07:00
Robey Pointer
e3d9b90ea1
[project @ robey@lag.net-20071029030344-9adfzb9ulfodtepu]
...
bug 157205: select() doesn't notify incoming stderr data, because stderr's
pipe isn't hooked up to the fileno() BufferedPipe. to fix, i added an "or"
pipe-event that can be triggered by either stdout or stderr, and hooked
them both up to fileno(). added a unit test for the bug and one for the
"or" pipe.
2007-10-28 20:03:44 -07:00
Robey Pointer
83b335e10f
[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]
...
bump copyright year to 2007
2007-02-13 11:17:06 -08:00
Robey Pointer
1a51090969
[project @ robey@lag.net-20070212183050-kaf5lvrbw46v9i59]
...
improve x11 test and add a test for reverse port forwarding
2007-02-12 10:30:50 -08:00
Robey Pointer
ecb8ffe373
[project @ robey@lag.net-20070211022553-mjbl0w7wygpl7os5]
...
add another test to check out private key auth.
2007-02-10 18:25:53 -08:00
Robey Pointer
c570f1a35a
[project @ robey@lag.net-20061227194121-hzrmwbb6ea14unkg]
...
once, this test failed, so add a timer
2006-12-27 14:41:21 -05:00
Robey Pointer
029b8989db
[project @ robey@lag.net-20061215222108-7pu0151970w1e1lp]
...
add a ResourceManager to replace __del__ methods, and use it in SSHClient
to automatically close any open transport when the SSHClient is collected.
this won't work on Transport itself (to close the attached packetizer)
because Transport starts up its own thread, and the threading library
keeps a Transport object alive to run that thread. i think that's okay;
the SSHClient interface is meant to be the easier one, so that's the one
where it's important that some auto-cleanup is attempted.
2006-12-15 14:21:08 -08:00
Robey Pointer
fec76c51b1
[project @ robey@lag.net-20061121001117-8mf8zzltvfvzzrv7]
...
add support for opening x11 channels, and a unit test
2006-11-20 16:11:17 -08:00
Robey Pointer
48bb10694b
[project @ robey@lag.net-20061120192137-1rcpiiq9mcd58m76]
...
reorder the closing of the pipe in Channel.close() to make sure it happens even when the channel is closed by the remote host first
2006-11-20 11:21:37 -08:00
Robey Pointer
e2d8357622
[project @ robey@lag.net-20061112055617-098a150cf051bffa]
...
try a trick that should let 'hostkeys[hostname][keytype] = key' work for
HostKeys objects again.
2006-11-11 21:56:17 -08:00
Robey Pointer
e736341e20
[project @ robey@lag.net-20061111004413-7bab08f1bad7f96f]
...
bug 70398:
allow constructions like:
hostkeys['hostname'] = {}
to create an empty host entry object, so that future attempts to set
keys will at least not throw an exception. (they'll still silently do
nothing, though.)
2006-11-10 16:44:13 -08:00
Robey Pointer
f4199b5a28
[project @ robey@lag.net-20061015012126-36370734592aff17]
...
might as well assert this
2006-10-14 18:21:26 -07:00
Robey Pointer
305a4ae417
[project @ robey@lag.net-20060908022816-ea2856cefb9d83e0]
...
fix from john arbash-meinel for the stub sftp server's default open mode
2006-09-07 19:28:16 -07:00
Robey Pointer
df20443b29
[project @ robey@lag.net-20060901205930-021bcc34e3d5d8c8]
...
sadly, revert the append optimization -- it breaks for openssh
2006-09-01 13:59:30 -07:00
Robey Pointer
2b8738d3ce
[project @ robey@lag.net-20060828234834-51542dc36057b361]
...
fix __setitem__ to do the right thing
2006-08-28 16:48:34 -07:00
Robey Pointer
145ceab54c
[project @ robey@lag.net-20060823025538-3f8a4d761d7d4118]
...
when a file is open for append, don't stat to get the file position unless the user asks for it explicitly
2006-08-22 19:55:38 -07:00
Robey Pointer
cc3e383baf
[project @ robey@lag.net-20060822025601-aab3b723b95d3a9c]
...
add 'flags' param to SFTPHandle and make the default impl avoid calling tell() when in append mode; add proper append-mode support to stub_sftp
2006-08-21 19:56:01 -07:00
Robey Pointer
929ce8df7a
[project @ robey@lag.net-20060813195045-ca4148e233794d4b]
...
add a unit test to verify that all the paramiko symbols are exported correctly
2006-08-13 12:50:45 -07:00
Robey Pointer
074dc36e6b
[project @ robey@lag.net-20060801182143-088ff687e0945937]
...
use hexlify in tests
2006-08-01 11:21:43 -07:00
Robey Pointer
c24db3e38c
[project @ robey@lag.net-20060726000907-b9a2d46eecc64cec]
...
allow prefetch + readv to occur at the same time (even though it will be really inefficient). instead of a moving pointer, use the prefetched buffers as an indication of what we've downloaded so far. break up large readv requests into the max packet size. add 2 more unit tests to test this stuff.
2006-07-25 17:09:07 -07:00
Robey Pointer
787b0b461d
[project @ robey@lag.net-20060723235649-5f757e44908ffb31]
...
attempt to implement support for kex-gex 'old' packet type, which is apparently used by putty (this would only affect paramiko in server mode)
2006-07-23 16:56:49 -07:00
Robey Pointer
4fa4fdee4b
[project @ robey@lag.net-20060627064106-71a2bfb5a39a2913]
...
add PKey.from_private_key to read from a file object
2006-06-26 23:41:06 -07:00
Robey Pointer
79d239693a
[project @ robey@lag.net-20060627060600-07d5b7e2fc57202d]
...
add PKey.write_private_key to write a private key into a file object, and add tests for it
2006-06-26 23:06:00 -07:00
Robey Pointer
0ad8405d15
[project @ robey@lag.net-20060512172544-f1cab2a1959987bf]
...
fix new cygwin test failures reported by alexander
2006-05-12 10:25:44 -07:00
Robey Pointer
8843feb633
[project @ robey@lag.net-20060509164549-14e664f234b4b747]
...
new parent exception for all auth failures, and new specific exception for bad host key
2006-05-09 09:45:49 -07:00
Robey Pointer
02e8178510
[project @ robey@lag.net-20060508005224-a8a04cd59f9fa016]
...
pulled out openssh config parsing into its own class
2006-05-07 17:52:24 -07:00
Robey Pointer
2a03425e27
[project @ robey@lag.net-20060508002007-3b7b87c361fe876a]
...
add unit tests for SSHClient, and fix a few bugs that uncovered
2006-05-07 17:20:07 -07:00
Robey Pointer
de1e072c73
[project @ robey@lag.net-20060507230153-dba6b2d664b5ef3f]
...
channel operations raise an exception on error now instead of returning a bool
2006-05-07 16:01:53 -07:00
Robey Pointer
581103665b
[project @ robey@lag.net-20060504025237-a015ee747d9a2e75]
...
if open_channel fails, it now raises ChannelException. added a unit test for that too. renegotiate_keys will also raise an exception now instead of returning a bool.
2006-05-03 19:52:37 -07:00
Robey Pointer
aac434e9b0
[project @ robey@lag.net-20060503163531-2297cd257acc51e5]
...
make a slightly different exception for the expected mode on cygwin (why would they add support for some but not all of the unix mode bits? very odd)
2006-05-03 09:35:31 -07:00
Robey Pointer
2067e9a136
[project @ robey@lag.net-20060502002709-617a268779f7ca6b]
...
readv should just yield results as it gets them (suggestion from robertc)
2006-05-01 17:27:09 -07:00
Robey Pointer
9819087210
[project @ robey@lag.net-20060428172401-ad8da020daedd941]
...
2 more unit test bugs found by alexander (can't change atime on win32)
2006-04-28 10:24:01 -07:00
Robey Pointer
5c2c949b1e
[project @ robey@lag.net-20060420072722-924a44953b8d9919]
...
tweak a test that relied too much on timing
2006-04-20 00:27:22 -07:00
Robey Pointer
abb7f1f1ba
[project @ robey@lag.net-20060420072627-958cad5e36cb8ecc]
...
fix a bug where prefetch() at EOF would throw an exception, and add a unit test
2006-04-20 00:26:27 -07:00
Robey Pointer
22db02c82f
[project @ robey@lag.net-20060411224806-2683ac099f9608ae]
...
add a test that feed/read can happen piecemeal
2006-04-11 15:48:06 -07:00
Robey Pointer
9e14a3bf58
[project @ robey@lag.net-20060411073946-8830b560b276266f]
...
factor out BufferedPipe into its own class
2006-04-11 00:39:46 -07:00
Robey Pointer
8087fa5a29
[project @ robey@lag.net-20060408222456-d3813e0206a2cda7]
...
assertTrue doesn't exist in py23
2006-04-08 15:24:56 -07:00
Robey Pointer
ccc1046a5c
[project @ robey@lag.net-20060406181821-68f9bc13b3580d37]
...
some fixes for win32: potential fix for lockup during failed tests; don't try chmod/chown or symlinks; fix canonicalize to convert dos-style path separators to '/'; open local files in binary mode; close a file before erasing it
2006-04-06 11:18:21 -07:00
Robey Pointer
0cee90eeca
[project @ robey@lag.net-20060327001726-7ccb095fd5c416f5]
...
roll in some changes from bzr that may be necessary to get stub_sftp to work on windows
2006-03-26 16:17:26 -08:00
Robey Pointer
b12d10fd72
[project @ robey@lag.net-20060326204635-1c5418c54187b95d]
...
fix exception-catching error found by alexander belchenko
2006-03-26 12:46:35 -08:00
Robey Pointer
82d8ca6e11
[project @ robey@lag.net-20060312040732-8d16f6c42f12f138]
...
document readv, fix thinko, and add a readv unit test
2006-03-11 20:07:32 -08:00
Robey Pointer
ece62093bd
[project @ robey@lag.net-20060312040633-92b1c78bf815905d]
...
add test to verify that 'for x in hostkeys' works
2006-03-11 20:06:33 -08:00
Robey Pointer
89e39a4559
[project @ robey@lag.net-20060309081455-84be2ae54f98e897]
...
move sftp big-file tests into a separate class and add one that does a prefetch, then seeks in random order
2006-03-09 00:14:55 -08:00
Robey Pointer
de6315b9c5
[project @ robey@lag.net-20060309080450-bad95b03d60d3d4f]
...
improve HostKeys so that it more correctly emulates a dict, and add a unit test to verify that
2006-03-09 00:04:50 -08:00
Robey Pointer
4be91d1c4d
[project @ robey@lag.net-20060220031741-3227438ff1b03a29]
...
add SFTPClient.truncate. add chmod, chown, utime, and truncate to SFTPFile. and of course tests.
2006-02-19 19:17:41 -08:00
Robey Pointer
409c4fc482
[project @ robey@lag.net-20060220003513-aa54e3e771a530fd]
...
add HostKeys, a helper for reading/parsing openssh known_hosts files, including hashed-host support
2006-02-19 16:35:13 -08:00
Robey Pointer
a8abbbecb8
[project @ robey@lag.net-20051204090414-7c8318ab735f6188]
...
experimental util functions for parsing/getting openssh host config, and unit tests (turned out to be pretty easy)
2005-12-04 01:04:14 -08:00
Robey Pointer
93ee12a194
[project @ robey@ralph.lag.net-20051204043258-3d82f58e781edf13]
...
add unit test for compression
2005-12-03 20:32:58 -08:00
Robey Pointer
a6b4875286
[project @ robey@ralph.lag.net-20051203043223-8ee54573dcda1386]
...
new unit test for doing a bunch of prefetches at once
2005-12-02 20:32:23 -08:00