-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
Refactor ssl tooling using trustme #807
Conversation
@@ -11,7 +11,7 @@ def run(sockets): | |||
pass | |||
|
|||
|
|||
def test_watchgodreload(certfile_and_keyfile): | |||
def test_watchgodreload(tls_ca_certificate_pem_path, tls_ca_certificate_private_key_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have to say I'm surprised I had to modify this since those fixtures are not used in the test, I think we shoud remove them, letting it that way just in case I missed something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything is fine 🚀
much appreciated @cdeler ! |
This removes hardcoded values for certificates / private keys and uses fixtures based on the trustme library
I think it's worthy addition as a preliminary work towards better tests for #776 and maybe in anticipation of a resolution of #806
It also adds a test that shows how to use a combined key and certificate (
test_run_chain
)