lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-0.13.4 vs lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-0.13.5
- old
+ new
@@ -631,10 +631,13 @@
# the forge alias.
#
# forge api v1 canonical source is forge.puppetlabs.com
# forge api v3 canonical source is forgeapi.puppetlabs.com
#
+ # @deprecated this method should not be used because stubbing the host
+ # breaks TLS validation.
+ #
# @param machine [String] the host to perform the stub on
# @param forge_host [String] The URL to use as the forge alias, will default to using :forge_host in the
# global options hash
def stub_forge_on(machine, forge_host = nil)
#use global options hash
@@ -652,10 +655,13 @@
# the forge alias.
#
# forge api v1 canonical source is forge.puppetlabs.com
# forge api v3 canonical source is forgeapi.puppetlabs.com
#
+ # @deprecated this method should not be used because stubbing the host
+ # breaks TLS validation.
+ #
# @param host [String] the host to perform the stub on
# @param forge_host [String] The URL to use as the forge alias, will default to using :forge_host in the
# global options hash
def with_forge_stubbed_on( host, forge_host = nil, &block )
#use global options hash
@@ -667,15 +673,21 @@
with_host_stubbed_on( host, {primary_forge_name => @forge_ip}, {primary_forge_name => ['forge.puppet.com','forgeapi.puppetlabs.com','forgeapi.puppet.com']}, &block )
end
# This wraps `with_forge_stubbed_on` and provides it the default host
# @see with_forge_stubbed_on
+ #
+ # @deprecated this method should not be used because stubbing the host
+ # breaks TLS validation.
def with_forge_stubbed( forge_host = nil, &block )
with_forge_stubbed_on( default, forge_host, &block )
end
# This wraps the method `stub_hosts` and makes the stub specific to
# the forge alias.
+ #
+ # @deprecated this method should not be used because stubbing the host
+ # breaks TLS validation.
#
# @see #stub_forge_on
def stub_forge(forge_host = nil)
#use global options hash
forge_host ||= options[:forge_host]