Why does rspec-puppet not find my class? -


i've created puppet module install aws cloudwatch monitoring scripts , set them up. puppet module available here.

when run rake spec, test suite fails with:

rspec ./spec/classes/init_spec.rb:4 # cloudwatch default values parameters should contain class[cloudwatch] 

i cannot life of me work out why test failing. how fix it?

i've tried creating .fixtures/yml in root of repo following content:

fixtures:   symlinks:     cloudwatch: "../../../../manifests"  fixtures:   symlinks:     cloudwatch: "#{source_dir}" 

but no dice.

i've tried using symlink link manifests directory: https://github.com/masterroot24/puppet-cloudwatch/commit/932970aab085984f2cda44fba841c3bde20f7a2b

your initial problem you're missing .fixtures.yml file, needs following content:

fixtures:   symlinks:     cloudwatch: "#{source_dir}" 

as documented in puppetlabs_spec_helper readme.

additional changes required test pass can seen in pr raised here.

responding edited question, discusses fixtures file wasn't in code linked, don't think fixtures syntactically valid; don't believe can specify more 1 fixtures block. anyway, have @ pr.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -