inspec/test/fixtures/profiles/waivers/basic/controls/basic.rb
James Stocks 35e36ad40a Allow for waiver time as well as date
Fixes #5037

The YAML parser may parse a waiver timestamp as a Time rather than a Date. Even when the user doesn't care about time, they may be using a tool that outputs YAML with trailing zeroes for hour, minutes, seconds etc.

Signed-off-by: James Stocks <jstocks@chef.io>
2020-05-20 14:59:07 +01:00

55 lines
No EOL
1.3 KiB
Ruby

control "01_not_waivered_passes" do
describe(true) { it { should eq true } }
end
control "02_not_waivered_fails" do
describe(true) { it { should eq false } }
end
control "03_waivered_no_expiry_ran_passes" do
describe(true) { it { should eq true } }
end
control "04_waivered_no_expiry_ran_fails" do
describe(true) { it { should eq false } }
end
control "05_waivered_no_expiry_not_ran" do
describe(true) { it { should eq true } }
end
control "06_waivered_expiry_in_past_ran_passes" do
describe(true) { it { should eq true } }
end
control "07_waivered_expiry_in_past_ran_fails" do
describe(true) { it { should eq false } }
end
control "08_waivered_expiry_in_past_not_ran" do
describe(true) { it { should eq true } }
end
control "09_waivered_expiry_in_future_ran_passes" do
describe(true) { it { should eq true } }
end
control "10_waivered_expiry_in_future_ran_fails" do
describe(true) { it { should eq false } }
end
control "11_waivered_expiry_in_future_not_ran" do
describe(true) { it { should eq true } }
end
control "12_waivered_expiry_in_future_z_ran_passes" do
describe(true) { it { should eq true } }
end
control "13_waivered_expiry_in_future_z_ran_fails" do
describe(true) { it { should eq false } }
end
control "14_waivered_expiry_in_future_z_not_ran" do
describe(true) { it { should eq true } }
end