Fixed #1711 - fileserver test fails due to incorrect mocking
This commit is contained in:
Родитель
8523a48315
Коммит
c96d250f71
|
@ -1,4 +1,6 @@
|
|||
0.24.x
|
||||
Fixed #1711 - fileserver test fails due to incorrect mocking
|
||||
|
||||
Fixed #1751 - Mac OS X DirectoryService nameservice provider support for
|
||||
plist output and password hash fil
|
||||
|
||||
|
|
|
@ -980,6 +980,11 @@ allow *
|
|||
}
|
||||
|
||||
dir = tempfile()
|
||||
|
||||
# When mocks attack, part 2
|
||||
kernel_fact = Facter.value(:kernel)
|
||||
Facter.stubs(:value).with(:kernel).returns(kernel_fact)
|
||||
|
||||
Facter.stubs(:value).with(:ipaddress).returns("127.0.0.1")
|
||||
Facter.stubs(:value).with { |v| v.to_s == "hostname" }.returns("myhost")
|
||||
Facter.stubs(:value).with { |v| v.to_s == "domain" }.returns("mydomain.com")
|
||||
|
|
Загрузка…
Ссылка в новой задаче