Revision d7e8d4e9
Added by Eric Helms 27 days ago
spec/acceptance/apache_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
# Doesn't have to be valid - can be expired since it's a static resource
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq('CN = Fake LE Intermediate X1') }
|
||
its(:subject) { should eq('CN = example.partial.solutions') }
|
||
its(:issuer) { should match_without_whitespace(/CN = Fake LE Intermediate X1/) }
|
||
its(:subject) { should match_without_whitespace(/CN = example.partial.solutions/) }
|
||
its(:keylength) { should be >= 2048 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
spec/acceptance/candlepin_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
describe x509_certificate('/etc/foreman/proxy_ca.pem') do
|
||
it { should be_certificate }
|
||
it { should be_valid }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq('C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = localhost') }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = localhost/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
spec/acceptance/certs_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'SSL server CA' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'SSL server CA' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'SSL server CA' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'SSL server CA' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'SSL server CA' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'SSL server CA' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
# Doesn't have to be valid - can be expired since it's a static resource
|
||
it { should have_purpose 'CA' }
|
||
its(:issuer) { should eq('CN = Fake LE Root X1') }
|
||
its(:subject) { should eq('CN = Fake LE Intermediate X1') }
|
||
its(:issuer) { should match_without_whitespace(/CN = Fake LE Root X1/) }
|
||
its(:subject) { should match_without_whitespace(/CN = Fake LE Intermediate X1/) }
|
||
its(:keylength) { should be >= 2048 }
|
||
end
|
||
end
|
spec/acceptance/certs_tar_extract_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = foreman-proxy.example.com") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = foreman-proxy.example.com/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = foreman-proxy.example.com") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fact('fqdn')}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = Katello, OU = SomeOrgUnit, CN = foreman-proxy.example.com/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
spec/acceptance/foreman_proxy_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'server' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = SMART_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = FOREMAN_PROXY, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
spec/acceptance/foreman_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
describe x509_certificate('/etc/foreman/proxy_ca.pem') do
|
||
it { should be_certificate }
|
||
it { should be_valid }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
spec/acceptance/puppet_spec.rb | ||
---|---|---|
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
describe x509_certificate('/etc/pki/katello/puppet/puppet_client_ca.crt') do
|
||
it { should be_certificate }
|
||
it { should be_valid }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
||
... | ... | |
it { should be_certificate }
|
||
it { should be_valid }
|
||
it { should have_purpose 'client' }
|
||
its(:issuer) { should eq("C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}") }
|
||
its(:subject) { should eq("C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}") }
|
||
its(:issuer) { should match_without_whitespace(/C = US, ST = North Carolina, L = Raleigh, O = Katello, OU = SomeOrgUnit, CN = #{fqdn}/) }
|
||
its(:subject) { should match_without_whitespace(/C = US, ST = North Carolina, O = FOREMAN, OU = PUPPET, CN = #{fqdn}/) }
|
||
its(:keylength) { should be >= 4096 }
|
||
end
|
||
|
Also available in: Unified diff
Fix tests on EL9