Sha256: 382874c93313bd2222d10b507935e1dc5734758cc0940f9c839836602f4a6ee3

Contents?: true

Size: 1.41 KB

Versions: 22

Compression:

Stored size: 1.41 KB

Contents

@process
Feature: purge command line
  As a systems administrator
  I should be able to use purge
  From the command line

  Background:
    Given a file named "purge.yaml" with:
"""
test:
  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
    And  the output should contain "Purge data from Flapjack's database"
    And  the output should contain "--check arg"

  Scenario: Running purge with no arguments exits uncleanly and shows usage
    When I run `bundle exec bin/flapjack purge`
    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`
    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

  #flapjack purge check_history --state-changes +10
  Scenario: purge all state changes except the newest 10 for all checks

  #flapjack purge disabled_checks
  Scenario: purge all data about disabled checks

  #flapjack purge stale_checks --days 90
  Scenario: purge all data about checks with no updates in the last 90 days

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
flapjack-1.6.0 features/cli_purge.feature
flapjack-1.6.0rc4 features/cli_purge.feature
flapjack-1.6.0rc3 features/cli_purge.feature
flapjack-1.6.0rc2 features/cli_purge.feature
flapjack-1.6.0rc1 features/cli_purge.feature
flapjack-1.5.0 features/cli_purge.feature
flapjack-1.5.0rc1 features/cli_purge.feature
flapjack-1.4.0 features/cli_purge.feature
flapjack-1.4.0rc1 features/cli_purge.feature
flapjack-1.3.0 features/cli_purge.feature
flapjack-1.3.0rc3 features/cli_purge.feature
flapjack-1.3.0rc2 features/cli_purge.feature
flapjack-1.3.0rc1 features/cli_purge.feature
flapjack-1.2.2 features/cli_purge.feature
flapjack-1.2.1 features/cli_purge.feature
flapjack-1.2.1rc3 features/cli_purge.feature
flapjack-1.2.1rc2 features/cli_purge.feature
flapjack-1.2.1rc1 features/cli_purge.feature
flapjack-1.2.0 features/cli_purge.feature
flapjack-1.2.0rc2 features/cli_purge.feature