Fix expression that looks like boolish logic #282
Annotations
5 errors
spec/unit/puppet/provider/x509_cert/openssl_spec.rb#L32
The openssl provider for the x509_cert type when not forcing key creates a certificate with the proper options
Failure/Error: execute([command('openssl')] + options, { failonfail: true, combine: true, custom_environment: env })
X509_cert[/tmp/foo.crt](provider=openssl) received :execute with unexpected arguments
expected: (["/usr/bin/openssl", "req", "-config", "/tmp/foo.cnf", "-new", "-x509", "-days", 3650, "-key", "/tmp/foo.key", "-out", "/tmp/foo.crt", "-extensions", "v3_req"], {:combine=>true, :custom_environment=>{}, :failonfail=>true})
got: (["/usr/bin/openssl", "req", "-config", "/tmp/foo.cnf", "-new", "-x509", "-days", 3650, "-key", "/tmp/foo.key", "-out", "/tmp/foo.crt"], {:combine=>true, :custom_environment=>{}, :failonfail=>true})
|
spec/unit/puppet/provider/x509_cert/openssl_spec.rb#L55
The openssl provider for the x509_cert type when not forcing key when using password creates a certificate with the proper options
Failure/Error: execute([command('openssl')] + options, { failonfail: true, combine: true, custom_environment: env })
X509_cert[/tmp/foo.crt](provider=openssl) received :execute with unexpected arguments
expected: (["/usr/bin/openssl", "req", "-config", "/tmp/foo.cnf", "-new", "-x509", "-days", 3650, "-key", "/tmp/foo.key", "-out", "/tmp/foo.crt", "-passin", "env:CERTIFICATE_PASSIN", "-extensions", "v3_req"], {:combine=>true, :custom_environment=>{"CERTIFICATE_PASSIN"=>"2x6${"}, :failonfail=>true})
got: (["/usr/bin/openssl", "req", "-config", "/tmp/foo.cnf", "-new", "-x509", "-days", 3650, "-key", "/tmp/foo.key", "-out", "/tmp/foo.crt", "-passin", "env:CERTIFICATE_PASSIN"], {:combine=>true, :custom_environment=>{"CERTIFICATE_PASSIN"=>"2x6${"}, :failonfail=>true})
|
spec/unit/puppet/provider/x509_cert/openssl_spec.rb#L82
The openssl provider for the x509_cert type when using a CA for signing creates a certificate with the proper options
Failure/Error: execute([command('openssl')] + options, { failonfail: true, combine: true, custom_environment: env })
X509_cert[/tmp/foo.crt](provider=openssl) received :execute with unexpected arguments
expected: (["/usr/bin/openssl", "x509", "-req", "-days", 3650, "-in", "/tmp/foo.csr", "-out", "/tmp/foo.crt", "-..., "-CAcreateserial", "-CA", "/tmp/foo-ca.crt", "-CAkey", "/tmp/foo-ca.key", "-extensions", "v3_req"], {:combine=>true, :custom_environment=>{}, :failonfail=>true})
got: (["/usr/bin/openssl", "x509", "-req", "-days", 3650, "-in", "/tmp/foo.csr", "-out", "/tmp/foo.crt", "-...-extfile", "/tmp/foo.cnf", "-CAcreateserial", "-CA", "/tmp/foo-ca.crt", "-CAkey", "/tmp/foo-ca.key"], {:combine=>true, :custom_environment=>{}, :failonfail=>true})
|
spec/unit/puppet/provider/x509_cert/openssl_spec.rb#L111
The openssl provider for the x509_cert type when using a CA for signing with a password creates a certificate with the proper options
Failure/Error: execute([command('openssl')] + options, { failonfail: true, combine: true, custom_environment: env })
X509_cert[/tmp/foo.crt](provider=openssl) received :execute with unexpected arguments
expected: (["/usr/bin/openssl", "x509", "-req", "-days", 3650, "-in", "/tmp/foo.csr", "-out", "/tmp/foo.crt", "-...-ca.crt", "-CAkey", "/tmp/foo-ca.key", "-passin", "env:CERTIFICATE_PASSIN", "-extensions", "v3_req"], {:combine=>true, :custom_environment=>{"CERTIFICATE_PASSIN"=>"5i;6%"}, :failonfail=>true})
got: (["/usr/bin/openssl", "x509", "-req", "-days", 3650, "-in", "/tmp/foo.csr", "-out", "/tmp/foo.crt", "-...serial", "-CA", "/tmp/foo-ca.crt", "-CAkey", "/tmp/foo-ca.key", "-passin", "env:CERTIFICATE_PASSIN"], {:combine=>true, :custom_environment=>{"CERTIFICATE_PASSIN"=>"5i;6%"}, :failonfail=>true})
|
|
This job failed
Loading