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

Don't validate the expired cert fixture in tests #149

Merged
merged 1 commit into from
Aug 7, 2019
Merged

Conversation

kke
Copy link
Contributor

@kke kke commented Aug 7, 2019

Closes #146 (alternative implementation)
Fixes #145

The existing spec validates an expired cert from spec fixtures using the cert store.

This changes the spec to validate that the subject.options[:ssl_cert_store]) is an instance of OpenSSL::X509::Store.

The verifying is actually done inside excon request / ssl decrypting outside of k8s-client and is never called directly by k8s-client.

@kke kke added bug Something isn't working chore labels Aug 7, 2019
@kke kke changed the title Modify spec site to not try to validate the expired cert Don't try to validate the expired cert fixture in tests Aug 7, 2019
@kke kke changed the title Don't try to validate the expired cert fixture in tests Don't validate the expired cert fixture in tests Aug 7, 2019
Copy link
Contributor

@jakolehm jakolehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add spec that confirms that we get error when cert is expired?

@jakolehm jakolehm merged commit 1a448c2 into master Aug 7, 2019
@jakolehm jakolehm deleted the fix/cert_spec branch August 7, 2019 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test suite server certificate fixture has expired
2 participants