github.com/chainreactors/fingers@v1.2.1/cmd/validate/test_invalid.yaml (about)

     1  - name: missing_rules
     2    focus: true
     3    # Missing rule field - should be invalid
     4  
     5  - name: ""  # Empty name - should be invalid
     6    rule:
     7      - regexps:
     8          body:
     9            - test
    10  
    11  - name: invalid_protocol
    12    protocol: invalid_protocol  # Unknown protocol - should warn
    13    rule:
    14      - regexps:
    15          body:
    16            - test
    17  
    18  - name: empty_rule
    19    rule:
    20      - # Empty rule with no matching criteria - should warn
    21  
    22  - name: active_no_senddata
    23    rule:
    24      - level: 1  # Active level but no senddata - should warn
    25        regexps:
    26          body:
    27            - test