mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Negative test added to check no status flag exist when enhanced outcomes flag is not used
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
This commit is contained in:
parent
a9fae7cfe2
commit
cfbddb82a5
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ describe "inspec schema" do
|
|||
out = inspec("schema exec-json")
|
||||
json_output = JSON.parse(out.stdout)
|
||||
_(json_output["definitions"]["Control_Result"]["properties"]["resource_id"]).wont_be_nil
|
||||
# status value to be nil when not using enhanced outcomes flag
|
||||
_(json_output["definitions"]["Exec_JSON_Control"]["properties"]["status"]).must_equal nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue