github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/internal/rules/aws/s3/dns_compliant_name_test.rego (about) 1 package builtin.aws.s3.aws0320 2 3 test_detects_when_has_not_dns_compliant_name { 4 r := deny with input as {"aws": {"s3": {"buckets": [{"name": {"value": "sana.test"}}]}}} 5 count(r) == 1 6 } 7 8 test_when_has_dns_compliant_name { 9 r := deny with input as {"aws": {"s3": {"buckets": [{"name": {"value": "sana-test"}}]}}} 10 count(r) == 0 11 }