github.com/crowdsecurity/crowdsec@v1.6.1/pkg/parser/tests/whitelist-base/test.yaml (about)

     1  #these are the events we input into parser
     2  lines:
     3    - Meta:
     4        test: test1
     5        source_ip: 1.1.1.1
     6        statics: toto
     7    - Meta:
     8        test: test2
     9        source_ip: 1.2.3.4
    10        statics: toto
    11    - Meta:
    12        test: test3
    13        source_ip: 2.2.3.4
    14        statics: toto
    15    - Meta:
    16        test: test4
    17        source_ip: 8.8.8.9
    18        statics: toto
    19    - Enriched:
    20        test_token: supertoken1234
    21      Meta:
    22        test: test5
    23        statics: toto
    24  #these are the results we expect from the parser
    25  results:
    26    - Whitelisted: true
    27      Process: true
    28      Meta:
    29        test: test1
    30        statics: success
    31    - Whitelisted: true
    32      Process: true 
    33      Meta:
    34        test: test2
    35        statics: success
    36    - Whitelisted: false
    37      Process: true
    38      Meta:
    39        test: test3
    40        statics: toto
    41    - Whitelisted: false
    42      Process: true
    43      Meta:
    44        test: test4
    45        statics: toto
    46    - Whitelisted: true
    47      Process: true
    48      Meta:
    49        test: test5
    50        statics: success
    51                 
    52  
    53