以下のjsonファイルで、注釈がTestと等しいかどうかを検証するためにchef inspecを使用しています。
"imdata": [
{
"aaaPwdStrengthProfile": {
"attributes": {
"annotation": "Test",
}
}
}
]
以下のスクリプトを試してみましたが、エラーが発生しました
describe json('C:/output.json') do
its(['imdata','aaaPwdStrengthProfile','attributes','annotation']) { should eq 'Test' }
end