BUG 1473527: module ssh-authkey-fingerprints fails Input/output error…#1340
Conversation
|
Sorry - I need to get agreement that I can sigm the CLA from my company - so this will have to wait a few days. In the meantime I'd be grateful for any ideas on how to add regression testing for this - it's not immediately obvious to me how to emulate the OSError we are seeing in testing |
|
@andrew-lee-metaswitch , Given how transient this issue is, I think testing that we haven't regressed any existing use cases is the best we can do. That plus unit testing would be sufficient. |
|
Thanks @TheRealFalcon - I've written some UTs, it wasn't actually hard in the end (though I still maintain that pytest/unittest and mock is a dark magic with an impenetrable syntax). I've had to alter the non-test code to make it mockable/testable. |
|
@andrew-lee-metaswitch , I've been holding off reviewing this one since it says WIP and you had/have issues with the CLA. Have those issues been resolved? Is this ready for review? |
|
Apologies, @TheRealFalcon , I've now got agreement from the legal team and have signed the CLA. |
|
One minor thing - flake8 defaults to 79 character lines, whereas black to 80 characters, meaning I can run |
TheRealFalcon
left a comment
There was a problem hiding this comment.
Looks good! Just a small request inline.
|
Oh also, regarding,
I tried to reproduce this but couldn't. We also have black set to 79 width: Curious if you can come up with a simple reproducer on main |
Ahh, I'll put this down to me running in an odd venv. |
|
Unit tests failed after my last requested update, so I took the liberty of pushing the fix. Assuming CI passes, this looks good to me now. Thanks for the contribution! |
Co-authored-by: James Falcon <therealfalcon@gmail.com>
6e59955 to
d16f60f
Compare
This fixes https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1473527?comments=all
Proposed Commit Message
Additional Context
Test Steps
Checklist: