Sha256: 75d555283f132adf1c8b8200aee58212798cf0cf15d95f77be584ecf296ec9e9

Contents?: true

Size: 1.71 KB

Versions: 5

Compression:

Stored size: 1.71 KB

Contents

Feature: Adhearsion Ahn CLI (restart)
  As an Adhearsion user
  I want the ahn command to provide a 'restart' command
  So that I can restart a running Adhearsion daemon

  @reconnect @skip_jruby
  Scenario: Command restart with a missing or wrong pid
    Given that I create a valid app under "path/somewhere"
    When I run `ahn daemon path/somewhere --pid-file=ahn.pid`
    And I run `ahn restart path/somewhere --pid-file=ahn2.pid`
    Then the output should contain:
    """
    Could not read pid from the file
    """
    And the output should contain:
    """
    Starting Adhearsion
    """

  @reconnect
  Scenario: Command restart with no path outside of the app directory
    Given that I create a valid app under "path/somewhere"
    When I run `ahn daemon path/somewhere --pid-file=ahn.pid`
    And I run `ahn restart --pid-file=ahn.pid`
    Then the output should contain:
    """
    A valid path is required for restart, unless run from an Adhearson app directory
    """
    And the exit status should be 1

  @reconnect @skip_jruby
  Scenario: Command restart with no path inside of the app directory
    Given that I create a valid app under "path/somewhere"
    When I cd to "path/somewhere"
    And I run `ahn daemon --pid-file=ahn.pid`
    And I run `ahn restart --pid-file=ahn.pid`
    Then the output should contain:
    """
    Starting Adhearsion
    """
    And the exit status should be 0

  @reconnect @skip_jruby
  Scenario: Command restart on a stopped application
    Given that I create a valid app under "path/somewhere"
    When I cd to "path/somewhere"
    And I run `ahn restart --pid-file=ahn.pid`
    Then the output should contain:
    """
    Starting Adhearsion
    """
    And the exit status should be 0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adhearsion-2.6.4 features/cli_restart.feature
adhearsion-2.6.3 features/cli_restart.feature
adhearsion-2.6.2 features/cli_restart.feature
adhearsion-2.6.1 features/cli_restart.feature
adhearsion-2.6.0 features/cli_restart.feature