crowdsec/pkg/parser/tests/whitelist-base/test.yaml

54 lines
965 B
YAML
Raw Normal View History

2020-05-15 09:39:16 +00:00
#these are the events we input into parser
lines:
- Meta:
test: test1
source_ip: 8.8.8.8
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
- Meta:
test: test2
source_ip: 1.2.3.4
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
- Meta:
test: test3
source_ip: 2.2.3.4
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
- Meta:
test: test4
source_ip: 8.8.8.9
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
- Enriched:
test_token: supertoken1234
Meta:
test: test5
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
#these are the results we expect from the parser
results:
- Whitelisted: true
Process: true
Meta:
test: test1
2020-07-09 10:41:18 +00:00
statics: success
2020-05-15 09:39:16 +00:00
- Whitelisted: true
Process: true
Meta:
test: test2
2020-07-09 10:41:18 +00:00
statics: success
2020-05-15 09:39:16 +00:00
- Whitelisted: false
Process: true
Meta:
test: test3
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
- Whitelisted: false
Process: true
Meta:
test: test4
2020-07-09 10:41:18 +00:00
statics: toto
2020-05-15 09:39:16 +00:00
- Whitelisted: true
Process: true
Meta:
test: test5
2020-07-09 10:41:18 +00:00
statics: success
2020-05-15 09:39:16 +00:00