mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
CI: improve test "cscli machines prune" (#2992)
This commit is contained in:
parent
14dc26b128
commit
26b3410ef1
1 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,10 @@ teardown() {
|
|||
@test "cscli machines prune" {
|
||||
rune -0 cscli metrics
|
||||
|
||||
rune -0 cscli machines prune
|
||||
# if the fixture has been created some time ago,
|
||||
# the machines may be old enough to trigger a user prompt.
|
||||
# make sure the prune duration is high enough.
|
||||
rune -0 cscli machines prune --duration 1000000h
|
||||
assert_output 'No machines to prune.'
|
||||
|
||||
rune -0 cscli machines list -o json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue