我创建了一个 Puppet 模块来安装 AWS Cloudwatch 监控脚本并进行设置。Puppet 模块可在此处获得。
当我运行时rake spec
,我的测试套件失败:
rspec ./spec/classes/init_spec.rb:4 # cloudwatch with default values for all parameters should contain Class[cloudwatch]
我一生都无法弄清楚为什么这个测试失败了。我如何解决它?
我尝试.fixtures/yml
使用以下内容在 repo 的根目录中创建一个:
fixtures:
symlinks:
cloudwatch: "../../../../manifests"
fixtures:
symlinks:
cloudwatch: "#{source_dir}"
但没有骰子。
我还尝试使用符号链接链接到清单目录:https ://github.com/MasterRoot24/puppet-cloudwatch/commit/932970aab085984f2cda44fba841c3bde20f7a2b