Mock url_available and ntp_available functions

With the addition of the url_available and ntp_available puppet
functions as part of the connectivity tests, we need to mock them out
for our noop tests so we don't actually fail when an test url is used.

Change-Id: I578e266e931f12d2e620a80994257871181e9f9b
Partial-Bug: 1261940
Closes-Bug: 1455702
This commit is contained in:
Alex Schultz 2015-05-15 20:54:38 -05:00
parent 8cfeca1a86
commit f1eaa1f99c
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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