inspec/test/fixtures/profiles/inputs/via-runner/controls/via-runner.rb
Nikita Mathur ec30fc3d4e Hash with indifference changes for inputs used via runner api
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-04-05 14:41:35 +05:30

13 lines
437 B
Ruby

control "test_control_01" do
describe input("test_input_01", value: "value_from_dsl") do
it { should cmp "value_from_api" }
end
describe input("test_input_hash_string", value: { "string_key": "string_value_dsl" }) do
its(['string_key']) { should eq 'string_value' }
end
describe input("test_input_hash_symbol", value: { symbol_key: :symbol_value_dsl }) do
its([:symbol_key]) { should eq :symbol_value }
end
end