Sha256: 8a41ee0605e042fc42dc72df2f7df479f1cd7d7f21fd0fc9155d4a9763401505

Contents?: true

Size: 1.05 KB

Versions: 26

Compression:

Stored size: 1.05 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
"""

  Scenario: Running with --help shows usage information
    When I run `bin/simulate-failed-check --help`
    Then the exit status should be 0
    And  the output should contain "Usage: simulate-failed-check"
    And  the output should contain "-k, --check CHECK"

  Scenario: Running simulate-failed-check with no arguments exits uncleanly and shows usage
    When I run `bin/simulate-failed-check`
    Then the exit status should not be 0
    And  the output should contain "Usage: simulate-failed-check"

  Scenario: Simulate a failed check
    When I run `bin/simulate-failed-check fail -c tmp/cucumber_cli/simulate-failed-check.yaml -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

26 entries across 26 versions & 1 rubygems

Version Path
flapjack-0.9.6 features/cli_simulate-failed-check.feature
flapjack-0.9.5 features/cli_simulate-failed-check.feature
flapjack-0.9.4 features/cli_simulate-failed-check.feature
flapjack-0.9.3 features/cli_simulate-failed-check.feature
flapjack-0.9.2 features/cli_simulate-failed-check.feature
flapjack-0.9.1 features/cli_simulate-failed-check.feature
flapjack-0.9.0 features/cli_simulate-failed-check.feature
flapjack-0.8.12 features/cli_simulate-failed-check.feature
flapjack-0.8.11 features/cli_simulate-failed-check.feature
flapjack-0.8.10 features/cli_simulate-failed-check.feature
flapjack-0.8.9 features/cli_simulate-failed-check.feature
flapjack-0.8.8 features/cli_simulate-failed-check.feature
flapjack-0.8.7 features/cli_simulate-failed-check.feature
flapjack-0.8.6 features/cli_simulate-failed-check.feature
flapjack-0.8.5 features/cli_simulate-failed-check.feature
flapjack-0.8.4 features/cli_simulate-failed-check.feature
flapjack-0.8.3 features/cli_simulate-failed-check.feature
flapjack-0.8.2 features/cli_simulate-failed-check.feature
flapjack-0.8.1 features/cli_simulate-failed-check.feature
flapjack-0.8.0 features/cli_simulate-failed-check.feature