I am able to test custom types
using rspec-puppet
due to implementing the answer of this question.
However, I would like to avoid to create a symlink to the custom folder
in every puppet-module by mocking
cystom types
.
The question is how to mock Custom Puppet Types in Rspec-Puppet.
I have found an example regarding the mocking of a Custom Puppet Function
but I am looking for an example to mock Puppet Custom Types
.
Puppet Code
class vim::ubuntu::config {
custom_multiple_files { 'line_numbers':
ensure => 'present',
parent_dir => '/home',
file_name => '.vimrc',
line => 'set number';
}
}
Rspec-puppet code
require 'spec_helper'
describe "vim::ubuntu::config" do
?
end