Need more info on Puppet Noop Testing!

asked 2017-01-13 04:59:06 -0600

karthikeayan gravatar image

updated 2017-01-13 04:59:59 -0600


I am looking into some community puppet tests. I have some knowledge on Puppet Rspec, but I have never come across code like below. Can some one help in pointing me in correct direction to learn about what is happening in this code.

manifest = 'database/database.pp'

describe manifest do

  before(:each) do
    Noop.puppet_function_load :is_pkg_installed do |function|
      allow(function).to receive(:call).and_return false
    end   end

edit retag flag offensive close merge delete