github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/rds/enable_deletion_protection_test.rego (about) 1 package builtin.aws.rds.aws0177 2 3 test_detects_when_disabled { 4 r := deny with input as {"aws": {"rds": {"instances": [{"deletionprotection": {"value": false}}]}}} 5 count(r) == 1 6 } 7 8 test_when_enabled { 9 r := deny with input as {"aws": {"rds": {"instances": [{"deletionprotection": {"value": true}}]}}} 10 count(r) == 0 11 }