Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip tests requiring sha1 signing if the backend doesn't support that #2011

Merged
merged 4 commits into from Mar 25, 2022

Conversation

pghmcfc
Copy link
Contributor

@pghmcfc pghmcfc commented Mar 20, 2022

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.

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 paramiko#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.
@pghmcfc
Copy link
Contributor Author

pghmcfc commented Mar 21, 2022

tests/test_client.py::SSHClientTest::test_cleanup looks to be a flaky test, at least on CircleCI. Everything else looks OK to me now.

bitprophet added a commit that referenced this pull request Mar 25, 2022
@bitprophet bitprophet merged commit 43189ef into paramiko:main Mar 25, 2022
@bitprophet
Copy link
Member

Yea there is some intermittent flakiness on Circle that I haven't dug into yet. Looks good on my end. Thanks!

pghmcfc added a commit to pghmcfc/paramiko that referenced this pull request May 17, 2022
bitprophet pushed a commit that referenced this pull request May 20, 2022
bitprophet pushed a commit that referenced this pull request May 20, 2022
@pghmcfc pghmcfc deleted the skip-sha1-signing-tests branch May 21, 2022 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants