【发布时间】:2021-05-26 13:18:07
【问题描述】:
我正在使用 chef inspec 在下面的 json 文件中验证注解是否等于 Test。
"imdata": [
{
"aaaPwdStrengthProfile": {
"attributes": {
"annotation": "Test",
}
}
}
]
尝试使用以下脚本但出现错误
describe json('C:/output.json') do
its(['imdata','aaaPwdStrengthProfile','attributes','annotation']) { should eq 'Test' }
end
【问题讨论】:
标签: json chef-infra devops inspec