summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add test proving basic behavior of #18222.8Jeff Forcier2022-06-031-0/+18
|
* Skip tests requiring invoke if it's not installedMichał Górny2022-06-031-1/+6
| | | | | | Since invoke is an optional dependency and only one group of tests require it, skip them gracefully rather than failing if it's not present.
* Fix broken unittesty skipTest in locale decoratorJeff Forcier2022-06-031-3/+2
|
* sftp tests: Replace unittest partsStanislav Levin2022-06-032-4/+4
| | | | | | | | | | | | | | | The original PR https://github.com/paramiko/paramiko/pull/992 introduced several tests for sftp functionality. These tests made use of unittest's stuff like `assertTrue` and `assertEqual` because at that moment the tests were grouped under the `unittest.TestCase`-based class (`SFTPTest`). Before PR merge `unittest.TestCase` was refactored out from sftp tests (667bd74b139ed86f9b261d3abf5b6042ba80920b) but PR was not updated. The sftp tests are marked with `slow` and that's why they are not failed in CI (slow tests are excluded by default). Fixes: https://github.com/paramiko/paramiko/issues/1941 Signed-off-by: Stanislav Levin <slev@altlinux.org>
* No idea why the lack of this blew up on circle but not locallyi-hate-my-lifeJeff Forcier2021-11-281-1/+1
| | | | Probably the locales differ? sigh
* Blacken code for #992Jeff Forcier2021-11-282-8/+13
|
* Cleanup re #992Jeff Forcier2021-11-282-46/+7
| | | | | | - remove apparently vestigial bits - remove Python 2.6 related bits - use pytest.skip instead of custom skip
* Fix failure in listdir when server uses a localeMartin Packman2021-11-281-0/+22
| | | | | | | | | | | | | | | Fixes #985 SFTPAttributes uses the locale-aware %b directive for the abbreviated month name with time.strftime, but was not decoding the result on Python 2.7. Add a strftime alias in py3compat that will always return unicode, and resolve the mixing of bytes and text in SFTPAttributes methods. Add a test at the listdir level, and a more specific test for the SFTPAttributes asbytes method.
* Add new requireNonAsciiLocale test decoratorMartin Packman2021-11-281-0/+48
|
* Expose Python 2.6 compatible test skip decoratorMartin Packman2021-11-281-1/+39
|
* Tests proving #1257Jeff Forcier2021-11-281-1/+31
|
* Enhance tests of existing/general key cmp/hash behaviorJeff Forcier2021-11-281-0/+22
| | | | Not sure why these were never explicitly tested
* Pre-patch test proving security flaw re: 32bit key hash comparisonsJeff Forcier2021-11-284-2/+49
|
* Blacken for hostkeys fixJeff Forcier2021-11-281-4/+4
|
* test_hostkeys: test SubDict.__delitem__()Lans Zhang2021-11-281-0/+17
| | | | | | | SubDict.__delitem__() would trigger the KeyError exception if a key type to be deleted is not present. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
* Try getting Kerberos working on CircleJeff Forcier2021-10-081-0/+7
| | | | | | | | | | | | Sadly it fails. Unclear whether I'm missing something, or if this represents a diff between the Ubuntu versions Travis last used and what Circle's images are on. I did get the tests themselves truly running, and while I trimmed back the deps a bit vs Travis, it's only as some of them were redundant/required by other packages we install here. Leaving it defined but not actually used in the workflow.
* bump test/ci related sleep :(Jeff Forcier2021-10-081-1/+4
|
* Merge branch '2.7' into masterJeff Forcier2021-07-231-1/+1
|\
| * Merge branch '2.6' into 2.7Jeff Forcier2021-07-231-1/+1
| |\
| | * Merge branch '2.5' into 2.6Jeff Forcier2021-07-231-1/+1
| | |\
| | | * noqa long lineJeff Forcier2021-07-231-1/+1
| | | |
* | | | Merge branch '2.7' into masterJeff Forcier2021-07-231-0/+42
|\ \ \ \ | |/ / /
| * | | Merge branch '2.6' into 2.7Jeff Forcier2021-07-231-0/+42
| |\ \ \ | | |/ /
| | * | Merge branch '2.5' into 2.6Jeff Forcier2021-07-231-0/+42
| | |\ \ | | | |/
| | | * Add some tests for server-mode Diffie-Hellman key exchange.Benno Rice2021-07-231-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | Tests existed for diffie-hellman-group1-sha1 in both client and server modes but tests for diffie-hellman-group14-sha256 and diffie-hellman-group16-sha512 were missing in server mode.
* | | | BlackenJeff Forcier2021-06-061-2/+2
| | | |
* | | | Fixup readability: Add Test for get() without using prefetchTim Stolarski2021-04-301-5/+7
| | | |
* | | | Add Test fpr get() without using prefetchTim Stolarski2021-04-281-0/+26
|/ / /
* | | fixed malformed PEM files -- there should not be leading spacesAlex Gaynor2020-08-301-27/+27
| | |
* | | Failing test anticipating #1723Jeff Forcier2020-08-271-0/+20
| | |
* | | Merge branch '2.7' into 1567-intJeff Forcier2019-12-092-0/+24
|\ \ \
| * | | fix loading ECDSA keys in new openssh private key formatPierce Lopez2019-12-051-3/+3
| | | | | | | | | | | | | | | | (also Blacken new ecdsa format key test)
| * | | test loading ECDSA key in new openssh private-key formatPierce Lopez2019-12-052-0/+24
| | | |
* | | | test RSA key in new openssh private key format without paddingPierce Lopez2019-12-052-0/+31
|/ / /
* | | How do folks keep putting friggin numbers in the tests?Jeff Forcier2019-12-032-4/+4
| | | | | | | | | | | | Well, pkey was probably my fault as the patch has sat around for ages
* | | Rename new test key files for readabilityJeff Forcier2019-12-033-2/+2
| | |
* | | Merge branch 'master' into 1343-intJeff Forcier2019-12-0370-851/+2296
|\ \ \
| * | | Apply %h tokenization to HostNameJeff Forcier2019-12-033-0/+13
| | | | | | | | | | | | | | | | | | | | This was another spot that incidentally occurred in older (and moved) code, but was made incorrect after cleanup
| * | | Modernize a test that sometimes fails for no obvious reason on travis only =/Jeff Forcier2019-12-031-5/+5
| | | |
| * | | Trim trailing whitespace from test config filesJeff Forcier2019-12-0327-39/+0
| | | |
| * | | Never actually handled optional-ness of Invoke importJeff Forcier2019-12-031-0/+9
| | | | | | | | | | | | | | | | Was just silently failing, wahoops
| * | | BlackenJeff Forcier2019-12-031-0/+1
| | | |
| * | | Fill in rest of Match exec tests - all passJeff Forcier2019-12-035-15/+62
| | | |
| * | | Base case re #717 works now.Jeff Forcier2019-12-0244-72/+563
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Huge ass squashed commit because I was experimenting with "commit entire feature at once so you do not leave broken tests around to break bisecting". Not sure it's worth it, at least not for large-ish, overhauling-existing-code feature adds. Breaking the work up over months did not help either, L M A O
| * | | Tweak some old test names for easier targetingJeff Forcier2019-12-021-17/+26
| | | |
| * | | Python 2 fix - not all exceptions have .msg under this interp versionJeff Forcier2019-09-271-1/+1
| | | |
| * | | Implement ssh_config hostname canonicalization (WIP)Jeff Forcier2019-09-2718-42/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactor DNS lookup related junk previously only relevant to %h - Refactor guts of lookup() so it can be done >1 time - Changelog/tests/implementation for canonicalization itself Closes #897
| * | | Sort top level import related junkJeff Forcier2019-09-261-20/+20
| | | |
| * | | Somehow failed to flake/blacken previouslyJeff Forcier2019-08-272-2/+1
| | | |
| * | | Clean up existing ssh_config tests moreJeff Forcier2019-08-261-77/+68
| | | | | | | | | | | | | | | | | | | | - New constructors used errywhere - More consistent config snippet formatting