Skip to content

Commit

Permalink
Merge pull request #209 from coreymbe/PIE-1395-ssl_rspec_testing
Browse files Browse the repository at this point in the history
(PIE-1395) SSL RSpec Testing
  • Loading branch information
actowery authored Nov 20, 2023
2 parents 2468cf3 + 02a169c commit bd30b3b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,20 @@
end

context 'with SSL configuration' do
it 'Ignores the system cert store with ignore_system_cert_store set to true'
it 'Verifies SSL certificate with ssl_ca configured'
let(:server_log) { '/var/log/puppetlabs/puppetserver/puppetserver.log' }

it 'Verifies SSL certificate with ssl_ca configured' do
configure_ssl
server_agent_run(setup_manifest(ssl_ca: 'ca.pem'))
trigger_puppet_run(server)
expect(log_count('Splunk HEC SSL', server_log)).to be 1
end

it 'Verifies SSL against the system store w/ include_system_cert_store set to true' do
configure_ssl(cert_store: true)
server_agent_run(setup_manifest(cert_store: true))
trigger_puppet_run(server)
expect(log_count('system store', server_log)).to be 1
end
end
end

0 comments on commit bd30b3b

Please sign in to comment.