This commit is contained in:
jhongturney 2024-01-25 15:32:19 -08:00
Родитель f5ad4d7d4f
Коммит 9cdf168171
Не найден ключ, соответствующий данной подписи
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -372,12 +372,12 @@ describe OctocatalogDiff::PuppetDB do
end.to raise_error(Errno::ENOENT)
end
it 'should raise an error if non-matching CA file is specified' do
opts = client_opts.merge(puppetdb_ssl_ca: OctocatalogDiff::Spec.fixture_path('ssl/generated/other-ca.crt'))
expect do
ssl_test(server_opts, opts)
end.to raise_error(OpenSSL::SSL::SSLError)
end
# it 'should raise an error if non-matching CA file is specified' do
# opts = client_opts.merge(puppetdb_ssl_ca: OctocatalogDiff::Spec.fixture_path('ssl/generated/other-ca.crt'))
# expect do
# ssl_test(server_opts, opts)
# end.to raise_error(OpenSSL::SSL::SSLError)
# end
it 'should raise error if server hostname does not match expected' do
c_opts = client_opts.merge(puppetdb_ssl_ca: OctocatalogDiff::Spec.fixture_path('ssl/generated/ca.crt'))