diff --git a/tests/noop/spec/hosts/netconfig/connectivity_tests_spec.rb b/tests/noop/spec/hosts/netconfig/connectivity_tests_spec.rb index 1231a28491..388e2aa6a0 100644 --- a/tests/noop/spec/hosts/netconfig/connectivity_tests_spec.rb +++ b/tests/noop/spec/hosts/netconfig/connectivity_tests_spec.rb @@ -3,5 +3,10 @@ require 'shared-examples' manifest = 'netconfig/connectivity_tests.pp' describe manifest do + before(:each) { + Puppet::Parser::Functions.newfunction(:url_available) { |args| + return true + } + } test_ubuntu_and_centos manifest end diff --git a/tests/noop/spec/hosts/ntp/ntp-check_spec.rb b/tests/noop/spec/hosts/ntp/ntp-check_spec.rb index c746d3902d..640361f037 100644 --- a/tests/noop/spec/hosts/ntp/ntp-check_spec.rb +++ b/tests/noop/spec/hosts/ntp/ntp-check_spec.rb @@ -3,5 +3,10 @@ require 'shared-examples' manifest = 'ntp/ntp-check.pp' describe manifest do + before(:each) { + Puppet::Parser::Functions.newfunction(:ntp_available) { |args| + return true + } + } test_ubuntu_and_centos manifest end