How to test custom types using Rspec-puppet?

前端 未结 2 1083
南旧
南旧 2020-12-19 23:37

I am trying to test a custom_type using rspec-puppet.

Puppet Code

class vim::ubuntu::config {
  custom_multiple_files { \'line_numbe         


        
2条回答
  •  轮回少年
    2020-12-20 00:14

    You'll need to have a copy of your module in your spec/fixtures/module folder. You can also use a symlink to add a reference from spec/fixtures/module to your custom_type_module.

    Reference: https://github.com/rodjek/rspec-puppet/issues/84

提交回复
热议问题