Sha256: d3fe3a2e40d93dadf69c1cdc57bd8a297ac29c547e8d4a20ad1369db7c5c8c0e

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

@process
Feature: simulate-failed-check command line
  As a systems administrator
  I should be able to use simulate-failed-check
  From the command line

  Background:
    Given a file named "simulate-failed-check.yaml" with:
"""
test:
  redis:
    db: 14
    driver: ruby
"""

  Scenario: Running with --help shows usage information
    When I run `bundle exec bin/flapjack simulate --help`
    Then the exit status should be 0
    And  the output should contain "Generate streams of events in various states"
    And  the output should contain "-k arg|--check arg"

  Scenario: Running simulate-failed-check with no arguments exits uncleanly and shows usage
    When I run `bundle exec bin/flapjack simulate`
    Then the exit status should not be 0
    And  the output should contain "Generate streams of events in various states"

  Scenario: Simulate a failed check
    When I run `bundle exec bin/flapjack -n test -c tmp/cucumber_cli/simulate-failed-check.yaml simulate fail -t 0 -i 0.1 -e 'test' -k 'PING'`
    Then the exit status should be 0
    And  the output should contain "sending failure event"
    And  the output should contain "stopping"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flapjack-1.0.0rc3 features/cli_simulate-failed-check.feature
flapjack-1.0.0rc2 features/cli_simulate-failed-check.feature
flapjack-1.0.0rc1 features/cli_simulate-failed-check.feature