mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
test fix
This commit is contained in:
parent
97917c9032
commit
976b5cf080
1 changed files with 2 additions and 2 deletions
|
@ -119,12 +119,12 @@ teardown() {
|
||||||
|
|
||||||
# comment and expiration are applied to all values
|
# comment and expiration are applied to all values
|
||||||
rune -1 cscli allowlist add foo 10.10.10.10 10.20.30.40 -d comment -e toto
|
rune -1 cscli allowlist add foo 10.10.10.10 10.20.30.40 -d comment -e toto
|
||||||
assert_stderr 'Error: time: invalid duration "toto"'
|
assert_stderr 'Error: invalid argument "toto" for "-e, --expiration" flag: time: invalid duration "toto"'
|
||||||
refute_output
|
refute_output
|
||||||
|
|
||||||
rune -1 cscli allowlist add foo 10.10.10.10 10.20.30.40 -d comment -e '1 day'
|
rune -1 cscli allowlist add foo 10.10.10.10 10.20.30.40 -d comment -e '1 day'
|
||||||
refute_output
|
refute_output
|
||||||
assert_stderr 'Error: invalid day value in duration "1 day"'
|
assert_stderr 'Error: invalid argument "1 day" for "-e, --expiration" flag: invalid day value in duration "1 day"'
|
||||||
|
|
||||||
rune -0 cscli allowlist add foo 10.10.10.10 -d comment -e '1d12h'
|
rune -0 cscli allowlist add foo 10.10.10.10 -d comment -e '1d12h'
|
||||||
assert_output 'added 1 values to allowlist foo'
|
assert_output 'added 1 values to allowlist foo'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue