diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-06-14 15:31:13 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-06-14 17:03:56 -0700 |
commit | 99330fa56d5f2a459fe560d7f7506d42d4a98d14 (patch) | |
tree | 8b920d56e7812ce7e6b81720eefc24aca3a255b9 /spec/integration/util/autoload.rb | |
parent | 1d867b026dbfa38d44f042680acf708b42295882 (diff) | |
download | puppet-99330fa56d5f2a459fe560d7f7506d42d4a98d14.tar.gz puppet-99330fa56d5f2a459fe560d7f7506d42d4a98d14.tar.xz puppet-99330fa56d5f2a459fe560d7f7506d42d4a98d14.zip |
(#7224) Reword 'hostname was not match' error message
This error message is grammatically incorrect and unhelpful, so we replace it
with a message that explains more correctly what went wrong and what was
expected. This message happens when making an authenticated connection to a
server where the certificate doesn't match its hostname. This happens in the
REST terminuses, so we wrap their HTTP methods with a helper that will catch
the appropriate SSLError and re-raise it with the better message stating the
hostname used, and the list of hostnames that we were expecting it to be a part
of.
Unfortunately, because the certificate in question isn't available at error
time, we have to use the Net::HTTP#verify_callback to capture it.
Paired-With: Jacob Helwig <jacob@puppetlabs.com>
Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
Diffstat (limited to 'spec/integration/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions