summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
AgeCommit message (Collapse)Author
2023-05-05Migrate rest of main keys and update suite to be more pytest-relaxed compatJeff Forcier
Main branch as of today: 350 passed, 21 skipped, 52 deselected, 3 warnings in 11.10s This branch as of this commit: 361 passed, 21 skipped, 52 deselected, 3 warnings in 10.51s Of those 11 "new" tests, 8 are ones I wrote (tests/pkey.py). Hard to figure out what the other 3 are given pytest-relaxed's output is very different from regular verbose pytest. oops.
2023-05-05Start moving key fixtures into support folderJeff Forcier
2023-01-16No more (object)ionsJeff Forcier
2023-01-12Update a bunch of no/low impact python2/3 references/commentsJeff Forcier
2023-01-11blackenJeff Forcier
2023-01-09py3compat.builtins -> stdlib builtinsJeff Forcier
2023-01-09Remove py3compat.PY2, including related streamliningJeff Forcier
2022-04-25blackenJeff Forcier
2022-03-25Refactor sha1 test skipping a tadJeff Forcier
2022-03-21Fix for compatibility with old versions of cryptographyPaul Howarth
2022-03-21Remove unused variable, keep lint happyPaul Howarth
2022-03-21blackenPaul Howarth
2022-03-20Skip tests requiring sha1 signing if the backend doesn't support thatPaul Howarth
Red Hat Enterprise Linux 9 will have SHA-1 signatures disabled by default. It is likely that SHA-1 signatures will disappear elsewhere over time too. This change detects if sha1 signatures are not supported by the backend and skips tests that rely on that functionality. This is a workaround for #2004. It would be good to reduce the reliance of the test suite on sha1 signatures except in the cases where that is explicitly being tested, and the markers added here give a decent starting point for seeing where to change things.
2021-11-28Pre-patch test proving security flaw re: 32bit key hash comparisonsJeff Forcier
2019-12-02Base case re #717 works now.Jeff Forcier
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
2019-09-27Implement ssh_config hostname canonicalization (WIP)Jeff Forcier
- 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
2018-10-05Reformatted as proposed by travis.blackenAnselm Kruis
2018-10-05Use k5test (if available) to execute GSSAPI related testsAnselm Kruis
Previously testing of GSSAPI (Kerberos) related functions required an externally provided Kerberos environment. Therefore all GSSAPI tests were skipped. Now the package k5test is used to setup a self-contained Kerberos environment. Because k5test requires the new GSSAPI, this commit also merges pull request #1166 and fixes broken GSSAPI test. If k5test is not available (i.e. on Windows), the tests still get skipped. The test case test_kex_gss.test_2_gsskex_and_auth_rekey is expected to fail.
2017-10-25Mark known slow tests as 'slow' pytest marker, and skip them by defaultJeff Forcier
2017-10-23Whoops, most uses of skipif REQUIRE reason=Jeff Forcier
2017-10-23Import cleanup, mostly focused on s/tests/./Jeff Forcier
2017-10-23Rename util func that trips pytest's default discovery.Jeff Forcier
Wouldn't matter as much under pytest-relaxed discovery, but, eh
2017-08-28Stub tests and partly-working implementation of 'load certs found alongside ↵Jeff Forcier
key_filenames' behavior re #1042 This actually breaks existing tests due to test server not supporting certs...bah
2014-08-15Remove all occurences of ParamikoTest.Olle Lundberg
Sorry paramiko, it's time to put on the big boy pants. You no longer support old as hell versions of python.
2013-10-30Use test_path to avoid relative path issuesScott Maxwell
2013-10-30Fix importsScott Maxwell
2012-10-15Refactoring: it's a thing. Re #85Jeff Forcier