kontena / k8s-client

Ruby Kubernetes API client
Apache License 2.0
76 stars 26 forks source link

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

Closed kke closed 5 years ago

kke commented 5 years ago

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.