Skip to content

Use native OpenSSL methods to automatically determine the PKey #244

Use native OpenSSL methods to automatically determine the PKey

Use native OpenSSL methods to automatically determine the PKey #244

Triggered via pull request July 18, 2024 17:42
Status Failure
Total duration 21m 52s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
18s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

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(resource[:authentication].to_s.upcase, options) 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(resource[:authentication].to_s.upcase, options) 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(resource[:authentication].to_s.upcase, options) 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(resource[:authentication].to_s.upcase, options) 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(resource[:authentication].to_s.upcase, options) 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(resource[:authentication].to_s.upcase, options) 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: OpenSSL::PKey.generate_key(resource[:authentication].to_s.upcase, options) 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#L90
The openssl provider for the ssl_pkey type when setting authentication to dsa when setting size creates with given size Failure/Error: OpenSSL::PKey.generate_key(resource[:authentication].to_s.upcase, options) 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#L100
The openssl provider for the ssl_pkey type when setting authentication to dsa when setting password creates with given password Failure/Error: OpenSSL::PKey.generate_key(resource[:authentication].to_s.upcase, options) 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#L112
The openssl provider for the ssl_pkey type when setting authentication to ec creates an ec key with secp384r1 curve Failure/Error: OpenSSL::PKey.generate_key(resource[:authentication].to_s.upcase, options) NameError: undefined local variable or method `generate_key' for OpenSSL::PKey:Module
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_174435935.jqu0OF.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_174437775.cDN9NY.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 - 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_174505531.p5qtbb.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.02 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_174507442.LCzXfp.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 - 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_174557103.BxprfQ.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_174559032.mEK8Gc.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 - 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_174606812.5JRG1b.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_174608887.nLJwVP.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 - 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_174627501.a4eu7n.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_174629526.rIG3ZI.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 - 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_174701476.vOfW01.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_174703459.NqBWiK.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 - 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_175018171.YQU8Pw.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_175020183.af3rBJ.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 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_175045952.xNlrz0.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_175047898.pqXueF.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_175116991.jsJglm.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_175118905.zqfxiS.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 - 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_175209210.bslSfP.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_175211393.DHON0k.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 - 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_175854214.cZyEmT.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_175856199.nJOn0A.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.