Use consistent and defined exit codes. Closes #2935

This commit is contained in:
Puskar Basu
2023-01-06 19:44:05 +05:30
committed by GitHub
parent 2d2a137705
commit 34ecf67496
10 changed files with 239 additions and 53 deletions

View File

@@ -0,0 +1,28 @@
benchmark "all_controls_ok" {
title = "All controls in OK, no ALARMS/ERORS"
description = "Benchmark to verify the exit code when no controls are in error/alarm"
children = [
control.ok_1,
control.ok_2
]
}
control "ok_1" {
title = "Control to verify the exit code when no controls are in error/alarm"
description = "Control to verify the exit code when no controls are in error/alarm"
query = query.query_1
severity = "high"
}
control "ok_2" {
title = "Control to verify the exit code when no controls are in error/alarm"
description = "Control to verify the exit code when no controls are in error/alarm"
query = query.query_1
severity = "high"
}
query "query_1"{
title ="query_1"
description = "Simple query 1"
sql = "select 'ok' as status, 'steampipe' as resource, 'acceptance tests' as reason"
}