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:
parent
8cfeca1a86
commit
f1eaa1f99c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user