mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
* Add support for loki datasource --------- Co-authored-by: Mathieu Lecarme <mathieu@garambrogne.net> Co-authored-by: Sebastien Blot <sebastien@crowdsec.net> Co-authored-by: Thibault "bui" Koechlin <thibault@crowdsec.net>
This commit is contained in:
parent
947b247a40
commit
92f923cfa8
12 changed files with 1420 additions and 4 deletions
|
@ -983,6 +983,16 @@ func TestDetectDatasourceValidation(t *testing.T) {
|
|||
source: kafka`,
|
||||
expected: setup.Setup{Setup: []setup.ServiceSetup{}},
|
||||
expectedErr: "invalid datasource for foobar: cannot create a kafka reader with an empty list of broker addresses",
|
||||
}, {
|
||||
name: "source loki: required fields",
|
||||
config: `
|
||||
version: 1.0
|
||||
detect:
|
||||
foobar:
|
||||
datasource:
|
||||
source: loki`,
|
||||
expected: setup.Setup{Setup: []setup.ServiceSetup{}},
|
||||
expectedErr: "invalid datasource for foobar: loki query is mandatory",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue