Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

added the tests to the enterprise suite, make them available on kitch… #229

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
3 changes: 2 additions & 1 deletion .kitchen.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ suites:
"alfresco" : {
"components" : ['haproxy','nginx','tomcat','transform','repo','share','solr','mysql','googledocs','yourkit'],
"version" : "5.1.g",
"ssl_enabled" : false
"ssl_enabled" : false,
"skip_certificate_creation" : false
},
"nginx" : {
"use_nossl_config" : true
Expand Down
32 changes: 32 additions & 0 deletions test/integration/community-edition/inspec/certs_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ssl_folder = '/etc/pki/tls/certs'
filename = 'alfresco'

control 'alfresco-10' do
impact 0.5
title 'Certs files creation and value check'

describe file("#{ssl_folder}/#{filename}.key") do
it { should exist }
its('content') { should include '-----BEGIN PRIVATE KEY-----' }
end

describe file("#{ssl_folder}/#{filename}.crt") do
it { should exist }
its('content') { should include '-----BEGIN CERTIFICATE-----' }
end

describe file("#{ssl_folder}/#{filename}.chain") do
it { should exist }
its('content') { should include '-----BEGIN PRIVATE KEY-----' }
end

describe file("#{ssl_folder}/#{filename}.nginxcrt") do
it { should exist }
its('content') { should include '-----BEGIN CERTIFICATE-----' }
end

describe file("#{ssl_folder}/#{filename}.dhparam") do
it { should exist }
its('content') { should include '-----BEGIN DH PARAMETERS-----' }
end
end