mirror of
https://github.com/inspec/inspec
synced 2025-01-02 00:09:01 +00:00
874ee77791
The existing documentation explicitly claims that not specifying “run” in a waiver is equivalent to specifying “run: false.” It turns out to be the case that the claim is completely false. This commit includes a test for a new control 18_waivered_no_expiry_default_run that behaves exactly like the control 04_waivered_no_expiry_ran_fails. That is, not specifying run in a waiver is the same as specifying “run: true.” Signed-off-by: David Marshall <dmarshall@gmail.com>
74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
03_waivered_no_expiry_ran_passes:
|
|
justification: Sound reasoning
|
|
run: true
|
|
|
|
04_waivered_no_expiry_ran_fails:
|
|
justification: Unassailable thinking
|
|
run: true
|
|
|
|
05_waivered_no_expiry_not_ran:
|
|
justification: Sheer cleverness
|
|
run: false
|
|
|
|
06_waivered_expiry_in_past_ran_passes:
|
|
expiration_date: 1977-06-01
|
|
justification: Necessity
|
|
run: true
|
|
|
|
07_waivered_expiry_in_past_ran_fails:
|
|
expiration_date: 1977-06-01
|
|
justification: Whimsy
|
|
run: true
|
|
|
|
08_waivered_expiry_in_past_not_ran:
|
|
expiration_date: 1977-06-01
|
|
justification: Contrariness
|
|
run: false
|
|
|
|
09_waivered_expiry_in_future_ran_passes:
|
|
expiration_date: 2077-06-01
|
|
justification: Handwaving
|
|
run: true
|
|
|
|
10_waivered_expiry_in_future_ran_fails:
|
|
expiration_date: 2077-06-01
|
|
justification: Didn't feel like it
|
|
run: true
|
|
|
|
11_waivered_expiry_in_future_not_ran:
|
|
expiration_date: 2077-06-01
|
|
justification: Lack of imagination
|
|
run: false
|
|
|
|
12_waivered_expiry_in_future_z_ran_passes:
|
|
expiration_date: 2077-11-10T00:00:00Z
|
|
justification: Handwaving
|
|
run: true
|
|
|
|
13_waivered_expiry_in_future_z_ran_fails:
|
|
expiration_date: 2077-11-10T00:00:00Z
|
|
justification: Didn't feel like it
|
|
run: true
|
|
|
|
14_waivered_expiry_in_future_z_not_ran:
|
|
expiration_date: 2077-11-10T00:00:00Z
|
|
justification: Lack of imagination
|
|
run: false
|
|
|
|
15_waivered_expiry_in_future_string_ran_passes:
|
|
expiration_date: "2077-06-01"
|
|
justification: Handwaving
|
|
run: true
|
|
|
|
16_waivered_expiry_in_future_string_ran_fails:
|
|
expiration_date: "2077-06-01"
|
|
justification: Didn't feel like it
|
|
run: true
|
|
|
|
17_waivered_expiry_in_future_string_not_ran:
|
|
expiration_date: "2077-06-01"
|
|
justification: Lack of imagination
|
|
run: false
|
|
|
|
18_waivered_no_expiry_default_run:
|
|
justification: Too lazy to specify run, which defaults to true
|