Fix handling of request extensions in x509_cert type and provider #119
Annotations
4 errors
Run tests:
spec/unit/puppet/type/x509_cert_spec.rb#L57
Puppet::Type::X509_cert accepts a valid req_ext parameter
Failure/Error: expect(resource[:req_ext]).to eq(:true)
expected: :true
got: true
(compared using ==)
Diff:
@@ -1 +1 @@
-:true
+true
|
Run tests:
spec/unit/puppet/type/x509_cert_spec.rb#L62
Puppet::Type::X509_cert does not accept a bad req_ext parameter
Failure/Error:
expect do
resource[:req_ext] = :foo
end.to raise_error(Puppet::Error, %r{Invalid value :foo})
expected Puppet::Error with message matching /Invalid value :foo/ but nothing was raised
|
Run tests:
spec/unit/puppet/provider/x509_cert/openssl_spec.rb#L62
The openssl provider for the x509_cert type when using a CA for signing creates a certificate with the proper options
Failure/Error: openssl options
#<Puppet::Type::X509_cert::ProviderOpenssl (class)> received :openssl with unexpected arguments
expected: (["x509", "-req", "-days", 3650, "-in", "/tmp/foo.csr", "-out", "/tmp/foo.crt", "-extfile", "/tmp/foo....reateserial"], ["-CA", "/tmp/foo-ca.crt"], ["-CAkey", "/tmp/foo-ca.key"], ["-extensions", "v3_req"]])
got: (["x509", "-req", "-days", 3650, "-in", "/tmp/foo.csr", "-signkey", "/tmp/foo.key", "-out", "/tmp/foo....reateserial"], ["-CA", "/tmp/foo-ca.crt"], ["-CAkey", "/tmp/foo-ca.key"], ["-extensions", "v3_req"]])
|
Run tests
Process completed with exit code 1.
|
Loading