mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
issue 4807: test for inputs in profiles
Signed-off-by: Nazli Beitollahpour <nazli.beitollahpour@umontreal.ca>
This commit is contained in:
parent
3cfd35f98f
commit
8a03d38b4b
1 changed files with 8 additions and 0 deletions
|
@ -369,6 +369,14 @@ describe Inspec::Profile do
|
||||||
_(result[:warnings].length).must_equal 1
|
_(result[:warnings].length).must_equal 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "inputs" do
|
||||||
|
let(:profile) { MockLoader.load_profile("inputs/metadata-basic") }
|
||||||
|
|
||||||
|
it "loads inputs" do
|
||||||
|
_(profile.info![:inputs]).must_equal([{ name: "test_01", options: { value: "test_value_01" } }])
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue