Use OpenSSL::PKey.generate_pkey instead of OpenSSL::PKey::Algo #243
ci.yml
on: pull_request
Puppet
/
Static validations
17s
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet
/
Test suite
0s
Annotations
120 errors
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L25
The openssl provider for the ssl_pkey type when creating a key with defaults creates an rsa key
Failure/Error: OpenSSL::PKey.generate_key('RSA', 'rsa_keygen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L32
The openssl provider for the ssl_pkey type when creating a key with defaults when setting size creates with given size
Failure/Error: OpenSSL::PKey.generate_key('RSA', 'rsa_keygen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L41
The openssl provider for the ssl_pkey type when creating a key with defaults when setting password creates with given password
Failure/Error: OpenSSL::PKey.generate_key('RSA', 'rsa_keygen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L52
The openssl provider for the ssl_pkey type when setting authentication to rsa creates an rsa key
Failure/Error: OpenSSL::PKey.generate_key('RSA', 'rsa_keygen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L60
The openssl provider for the ssl_pkey type when setting authentication to rsa when setting size creates with given size
Failure/Error: OpenSSL::PKey.generate_key('RSA', 'rsa_keygen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L70
The openssl provider for the ssl_pkey type when setting authentication to rsa when setting password creates with given password
Failure/Error: OpenSSL::PKey.generate_key('RSA', 'rsa_keygen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L82
The openssl provider for the ssl_pkey type when setting authentication to dsa creates a dsa key
Failure/Error: params = OpenSSL::PKey.generate_parameters('DSA', 'dsa_paramgen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_parameters' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L91
The openssl provider for the ssl_pkey type when setting authentication to dsa when setting size creates with given size
Failure/Error: params = OpenSSL::PKey.generate_parameters('DSA', 'dsa_paramgen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_parameters' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L102
The openssl provider for the ssl_pkey type when setting authentication to dsa when setting password creates with given password
Failure/Error: params = OpenSSL::PKey.generate_parameters('DSA', 'dsa_paramgen_bits' => resource[:size])
NameError:
undefined local variable or method `generate_parameters' for OpenSSL::PKey:Module
|
Puppet / 7 (Ruby 2.7):
spec/unit/puppet/provider/ssl_pkey/openssl_spec.rb#L115
The openssl provider for the ssl_pkey type when setting authentication to ec creates an ec key
Failure/Error: OpenSSL::PKey.generate_key('EC', 'ec_paramgen_curve' => resource[:curve])
NameError:
undefined local variable or method `generate_key' for OpenSSL::PKey:Module
|
Puppet / Puppet 7 - AlmaLinux 8:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173151791.bB3C0X.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173153735.oGMNU5.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 8
Process completed with exit code 1.
|
Puppet / Puppet 7 - Ubuntu 22.04:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu2204-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173155326.5KFG6Z.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu2204-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173157219.X0VSLv.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 22.04
Process completed with exit code 1.
|
Puppet / Puppet 7 - Rocky 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'rocky9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173255487.quNS2E.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'rocky9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173257492.lXUG33.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 9
Process completed with exit code 1.
|
Puppet / Puppet 7 - Ubuntu 20.04:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173505498.bc5rNC.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173507491.ZB2ql1.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Ubuntu 20.04
Process completed with exit code 1.
|
Puppet / Puppet 7 - Debian 11:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173724405.r2Zgph.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173726407.qNQ5Sx.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 11
Process completed with exit code 1.
|
Puppet / Puppet 7 - AlmaLinux 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173734706.j5UBpE.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173736711.mCPRvv.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - AlmaLinux 9
Process completed with exit code 1.
|
Puppet / Puppet 7 - CentOS 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'centos9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173800921.QDbisd.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'centos9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173802903.yFNSnp.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - CentOS 9
Process completed with exit code 1.
|
Puppet / Puppet 7 - Rocky 8:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'rocky8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173832694.KsFQe4.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'rocky8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173834598.QQ27uh.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Rocky 8
Process completed with exit code 1.
|
Puppet / Puppet 7 - OracleLinux 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'oracle9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173949549.egQKxc.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'oracle9-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_173951614.T01MVY.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 9
Process completed with exit code 1.
|
Puppet / Puppet 7 - OracleLinux 8:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'oracle8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_174218252.7ljiYU.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'oracle8-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_174220226.mBZLPf.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - OracleLinux 8
Process completed with exit code 1.
|
Puppet / Puppet 7 - Debian 12:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
x509_cert example behaves like the example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'debian12-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180250961.b7LkT4.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
x509_cert example behaves like the example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'debian12-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180252843.YalkBx.pp
Last 10 lines of output were:
undefined method `generate_key' for OpenSSL::PKey:Module
Error: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Ssl_pkey[/tmp/foo.example.com.key]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: undefined method `generate_key' for OpenSSL::PKey:Module (file: /etc/puppetlabs/code/environments/production/modules/openssl/manifests/certificate/x509.pp, line: 157)
�[mNotice: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Dependency Ssl_pkey[/tmp/foo.example.com.key] has failures: true
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/Openssl::Config[/tmp/foo.example.com.cnf]/File[/tmp/foo.example.com.cnf]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_request[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/X509_cert[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Openssl::Certificate::X509[foo.example.com]/File[/tmp/foo.example.com.csr]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb:14
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L11
x509_cert example behaves like the example is expected to be file and have attributes {:owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.crt')).to be_file.and(have_attributes(owner: 'nobody')) }
expected `File "/tmp/foo.example.com.crt".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.crt" to have attributes {:owner => "nobody"} but had attributes {:owner => ""}
Diff for (have attributes {:owner => "nobody"}):
@@ -1 +1 @@
-:owner => "nobody",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L21
x509_cert example behaves like the example is expected to be file and have attributes {:mode => "600", :owner => "nobody"}
Failure/Error: it { expect(file('/tmp/foo.example.com.key')).to be_file.and(have_attributes(owner: 'nobody', mode: '600')) }
expected `File "/tmp/foo.example.com.key".file?` to be truthy, got false
...and:
expected File "/tmp/foo.example.com.key" to have attributes {:mode => "600", :owner => "nobody"} but had attributes {:mode => "", :owner => ""}
Diff for (have attributes {:mode => "600", :owner => "nobody"}):
@@ -1,3 +1,3 @@
-:mode => "600",
-:owner => "nobody",
+:mode => "",
+:owner => "",
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L22
x509_cert example behaves like the example is expected to have matching certificate "/tmp/foo.example.com.crt"
Failure/Error: it { expect(x509_private_key('/tmp/foo.example.com.key', passin: 'pass:mahje1Qu')).to have_matching_certificate('/tmp/foo.example.com.crt') }
expected `X509 private key "/tmp/foo.example.com.key".has_matching_certificate?("/tmp/foo.example.com.crt")` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L15
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be certificate
Failure/Error: it { is_expected.to be_certificate }
expected `X509 certificate "/tmp/foo.example.com.crt".certificate?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L16
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" is expected to be valid
Failure/Error: it { is_expected.to be_valid }
expected `X509 certificate "/tmp/foo.example.com.crt".valid?` to be truthy, got false
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L17
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" subject is expected to match without whitespace /C = CH, O = Example.com, CN = foo.example.com/
Failure/Error: its(:subject) { is_expected.to match_without_whitespace(%r{C = CH, O = Example.com, CN = foo.example.com}) }
Actual:
Expected:
C = CH, O = Example.com, CN = foo.example.com
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12:
spec/acceptance/x509_cert_spec.rb#L18
x509_cert example behaves like the example X509 certificate "/tmp/foo.example.com.crt" keylength is expected to eq 1024
Failure/Error: its(:keylength) { is_expected.to eq 1024 }
expected: 1024
got: 0
(compared using ==)
Shared Example Group: "the example" called from ./spec/acceptance/x509_cert_spec.rb:10
|
Puppet / Puppet 7 - Debian 12
Process completed with exit code 1.
|