2021-04-07 10:39:25 +00:00
|
|
|
# copyright: 2021, Chef Software, Inc.
|
2021-03-31 06:12:51 +00:00
|
|
|
title "Verifying loading of hashmap inputs using metadata and external file"
|
|
|
|
|
|
|
|
control "hashmap-metadata" do
|
|
|
|
title "Verifying loading of hashmap inputs using metadata file"
|
|
|
|
|
2021-04-07 10:39:25 +00:00
|
|
|
describe input("metadata_hash") do
|
|
|
|
its(["metadata_hash_key_str"]) { should eq "metadata_hash_value_str" }
|
|
|
|
its([:metadata_hash_key_sym]) { should eq "metadata_hash_value_sym" }
|
2021-03-31 06:12:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
control "hashmap-external-file" do
|
|
|
|
title "Verifying loading of hashmap inputs using external file"
|
|
|
|
|
2021-04-07 10:39:25 +00:00
|
|
|
describe input("external_input_hash") do
|
|
|
|
its(["external_input_hash_key_str"]) { should eq "external_input_hash_value_str" }
|
|
|
|
its([:external_input_hash_key_sym]) { should eq "external_input_hash_value_sym" }
|
2021-04-05 10:40:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
control "hashmap-profile-DSL" do
|
|
|
|
title "Verifying loading of hashmap inputs using profile DSL"
|
|
|
|
|
2021-04-07 10:39:25 +00:00
|
|
|
describe input("dsl_hash_string", value: { "dsl_hash_string_key": "dsl_hash_string_value" } ) do
|
|
|
|
its(["dsl_hash_string_key"]) { should eq "dsl_hash_string_value" }
|
2021-04-05 10:40:47 +00:00
|
|
|
end
|
|
|
|
|
2021-04-07 10:39:25 +00:00
|
|
|
describe input("dsl_hash_symbol", value: { dsl_hash_symbol_key: :dsl_hash_symbol_value } ) do
|
|
|
|
its([:dsl_hash_symbol_key]) { should eq :dsl_hash_symbol_value }
|
2021-03-31 06:12:51 +00:00
|
|
|
end
|
|
|
|
end
|