Add class to handle creation of certs for advisor service on localhost #1257
Annotations
10 errors
Run tests:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.3.0/lib/voxpupuli/acceptance/examples.rb#L4
certs::apache with default parameters behaves like an idempotent resource 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-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151533827.u7IPWo.pp
Last 10 lines of output were:
Warning: /Stage[main]/Certs::Ca/Ca[katello-default-ca]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/root/ssl-build/katello-server-ca.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/root/ssl-build/KATELLO-TRUSTED-SSL-CERT]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-default-ca.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-server-ca.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Cert[almalinux8-64-puppet8.example.com-apache]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Certs::Keypair[almalinux8-64-puppet8.example.com-apache]/Private_key[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Certs::Keypair[almalinux8-64-puppet8.example.com-apache]/File[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Certs::Keypair[almalinux8-64-puppet8.example.com-apache]/File[/etc/pki/katello/certs/katello-apache.crt]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 1.84 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/apache_spec.rb:14
|
Run tests:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.3.0/lib/voxpupuli/acceptance/examples.rb#L8
certs::apache with default parameters behaves like an idempotent resource 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-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151537776.P0aHYL.pp
Last 10 lines of output were:
Warning: /Stage[main]/Certs::Ca/Ca[katello-default-ca]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/root/ssl-build/katello-server-ca.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/root/ssl-build/KATELLO-TRUSTED-SSL-CERT]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-default-ca.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Ca/File[/etc/pki/katello/certs/katello-server-ca.crt]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Cert[almalinux8-64-puppet8.example.com-apache]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Certs::Keypair[almalinux8-64-puppet8.example.com-apache]/Private_key[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Certs::Keypair[almalinux8-64-puppet8.example.com-apache]/File[/etc/pki/katello/private/katello-apache.key]: Skipping because of failed dependencies
Warning: /Stage[main]/Certs::Apache/Certs::Keypair[almalinux8-64-puppet8.example.com-apache]/File[/etc/pki/katello/certs/katello-apache.crt]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.79 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/apache_spec.rb:14
|
Run tests:
spec/acceptance/apache_spec.rb#L19
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" is expected to be certificate
Failure/Error: it { should be_certificate }
expected `X509 certificate "/etc/pki/katello/certs/katello-apache.crt".certificate?` to be truthy, got false
|
Run tests:
spec/acceptance/apache_spec.rb#L20
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" is expected to be valid
Failure/Error: it { should be_valid }
expected `X509 certificate "/etc/pki/katello/certs/katello-apache.crt".valid?` to be truthy, got false
|
Run tests:
spec/acceptance/apache_spec.rb#L21
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" is expected to have purpose "server"
Failure/Error: it { should have_purpose 'server' }
expected `X509 certificate "/etc/pki/katello/certs/katello-apache.crt".has_purpose?("server")` to be truthy, got false
|
Run tests:
spec/acceptance/apache_spec.rb#L22
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" issuer is expected to match without whitespace /C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = almalinux8-64-puppet8.example.com/
Failure/Error: its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
Actual:
Expected:
C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = almalinux8-64-puppet8.example.com
|
Run tests:
spec/acceptance/apache_spec.rb#L23
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" subject is expected to match without whitespace /C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = almalinux8-64-puppet8.example.com/
Failure/Error: its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
Actual:
Expected:
C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = almalinux8-64-puppet8.example.com
|
Run tests:
spec/acceptance/apache_spec.rb#L24
certs::apache with default parameters X509 certificate "/etc/pki/katello/certs/katello-apache.crt" keylength is expected to be >= 4096
Failure/Error: its(:keylength) { should be >= 4096 }
expected: >= 4096
got: 0
|
Run tests:
spec/acceptance/apache_spec.rb#L29
certs::apache with default parameters X509 private key "/etc/pki/katello/private/katello-apache.key" is expected to be valid
Failure/Error: it { should be_valid }
expected `X509 private key "/etc/pki/katello/private/katello-apache.key".valid?` to be truthy, got false
|
Run tests:
spec/acceptance/apache_spec.rb#L30
certs::apache with default parameters X509 private key "/etc/pki/katello/private/katello-apache.key" is expected to have matching certificate "/etc/pki/katello/certs/katello-apache.crt"
Failure/Error: it { should have_matching_certificate('/etc/pki/katello/certs/katello-apache.crt') }
expected `X509 private key "/etc/pki/katello/private/katello-apache.key".has_matching_certificate?("/etc/pki/katello/certs/katello-apache.crt")` to be truthy, got false
|
Loading