features/cli_purge.feature in flapjack-1.6.0 vs features/cli_purge.feature in flapjack-2.0.0b1
- old
+ new
@@ -3,16 +3,15 @@
As a systems administrator
I should be able to use purge
From the command line
Background:
- Given a file named "purge.yaml" with:
+ Given a file named "purge.toml" with:
"""
-test:
- redis:
- db: 14
- driver: ruby
+[redis]
+ db = 14
+ driver = "ruby"
"""
Scenario: Running with --help shows usage information
When I run `bundle exec bin/flapjack purge --help`
Then the exit status should be 0
@@ -24,10 +23,10 @@
Then the exit status should not be 0
And the output should contain "Purge data from Flapjack's database"
#flapjack purge check_history --days 90
Scenario: Purge check data older than 90 days
- When I run `bundle exec bin/flapjack -n test -c tmp/cucumber_cli/purge.yaml purge check_history --days 90`
+ When I run `bundle exec bin/flapjack -c tmp/cucumber_cli/purge.toml purge check_history --days 90`
Then the exit status should be 0
#flapjack purge check_history --days 2 --check "flapper.example:Flapper"
Scenario: keep only last two days of Flapper state changes