【发布时间】:2016-06-11 09:00:03
【问题描述】:
我创建了一个 Puppet 模块来安装 AWS Cloudwatch 监控脚本并进行设置。 Puppet 模块可用here。
当我运行 rake spec 时,我的测试套件失败:
rspec ./spec/classes/init_spec.rb:4 # cloudwatch with default values for all parameters should contain Class[cloudwatch]
我这辈子都无法弄清楚为什么这个测试失败了。我该如何解决?
我尝试在 repo 的根目录中创建一个.fixtures/yml,内容如下:
fixtures:
symlinks:
cloudwatch: "../../../../manifests"
fixtures:
symlinks:
cloudwatch: "#{source_dir}"
但没有骰子。
我也尝试使用符号链接链接到清单目录:https://github.com/MasterRoot24/puppet-cloudwatch/commit/932970aab085984f2cda44fba841c3bde20f7a2b
【问题讨论】:
标签: puppet rspec-puppet