mirror of
https://github.com/inspec/inspec
synced 2024-12-24 20:13:16 +00:00
ceca77e118
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
24 lines
675 B
Ruby
24 lines
675 B
Ruby
# A normal input should work normally
|
|
control "read-a-cleartext-input" do
|
|
describe input("cleartext_input") do
|
|
it { should eq "visible-in-clear" }
|
|
end
|
|
end
|
|
|
|
# A sensitive input should be able to be
|
|
# read internally by InSpec but have its
|
|
# value obscured in reporters input listings
|
|
# (this does not affect the test message output)
|
|
control "read-a-sensitve-input" do
|
|
describe input("sensitive_input") do
|
|
it { should eq "visible-in-secret" }
|
|
end
|
|
end
|
|
|
|
# An input with sensitive = false should work normally
|
|
control "read-an-explicitly-nonsesnitve-input" do
|
|
describe input("explicitly_nonsensitive_input") do
|
|
it { should eq "visible-in-clear" }
|
|
end
|
|
end
|
|
|