mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
cscli refact: package clialert, clidecision (#3203)
* cscli refact: package clialert, clidecision * refact: function SanitizeScope() * lint
This commit is contained in:
parent
5a50fd06bb
commit
bc6be99b97
11 changed files with 98 additions and 89 deletions
|
@ -108,12 +108,12 @@ teardown() {
|
|||
# invalid json
|
||||
rune -1 cscli decisions import -i - <<<'{"blah":"blah"}' --format json
|
||||
assert_stderr --partial 'Parsing json'
|
||||
assert_stderr --partial 'json: cannot unmarshal object into Go value of type []main.decisionRaw'
|
||||
assert_stderr --partial 'json: cannot unmarshal object into Go value of type []clidecision.decisionRaw'
|
||||
|
||||
# json with extra data
|
||||
rune -1 cscli decisions import -i - <<<'{"values":"1.2.3.4","blah":"blah"}' --format json
|
||||
assert_stderr --partial 'Parsing json'
|
||||
assert_stderr --partial 'json: cannot unmarshal object into Go value of type []main.decisionRaw'
|
||||
assert_stderr --partial 'json: cannot unmarshal object into Go value of type []clidecision.decisionRaw'
|
||||
|
||||
#----------
|
||||
# CSV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue