diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index 4285fc2..9d20c10 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -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