π§ AWS WAF Rule Group has no WAF Rules - prod.logic.yamlπ π’
- Contextual name: π§ prod.logic.yamlπ π’
- ID:
/ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with test data
- π Logic without extracts
Usesβ
- π AWS WAF Rule Group
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-10-25T12:02:04.652787102Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10A1__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ not(setOfText(['caAwsWafv2RuleGroupGlobal', 'caAwsWafv2RuleGroupRegional']).contains(RecordType.DeveloperName)) | βοΈ null |
| π’ | test3 | βοΈ 299 | βοΈ CA10A1__AWS_WAF_Rules__r.hasNo(COMPLIANT) | βοΈ null |
| π’ | test4 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/waf/rule-group-without-rules/policy.yaml | 364F618C170A78759A1C3A772DC9E488 |
| Open | /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml | 9E22D6E2804DE7A033EECE69232EF747 |
| Open | /ce/ca/aws/waf/rule-group-without-rules/test-data.json | C6413B03EB5163B704CF13D817D57864 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
Contentβ
---
inputType: "CA10A1__CaAwsWafRuleGroup__c"
recordTypes:
- "caAwsWafv2RuleGroupGlobal"
- "caAwsWafv2RuleGroupRegional"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The AWS WAF Rule Group does not have any rules."
remediationMessage: "Add at least one rule to the rule group or delete the rule group if it is not needed."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10A1__AWS_WAF_Rules__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The AWS WAF Rule Group has at least one rule."
relatedLists:
- relationshipName: "CA10A1__AWS_WAF_Rules__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is a rule within the group."