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:
Nikita Mathur 2022-07-01 14:17:35 +05:30
parent a9fae7cfe2
commit cfbddb82a5

View file

@ -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