这篇博客文章详细描述了包装器配置文件:
https://blog.chef.io/2017/07/06/understanding-inspec-profile-inheritance/
在文章的末尾,它引用了一个Git,其中包含一个使用包装器配置文件的示例:
https://github.com/adamleff/inspec-profile-wrapper-example
当我将回购cd克隆到controls文件夹并尝试运行以下测试时:
inspec exec controls_from_other_profiles.rb我收到以下错误消息:
无法加载linux基线,因为它不是controls_from_other_profiles.rb测试的依赖项。从这个上下文中可以获得的依赖关系是:
依赖项是在inspec.yml中定义的。
如何正确运行这些测试?
发布于 2018-07-03 11:04:05
我偶然发现了答案。在配置文件目录中,运行以下命令:
inspec exec .不要忘记在depends中设置inspec.yml键。
https://devops.stackexchange.com/questions/4425
复制相似问题