Sha256: e635c48dc57e170e36a323b0e32b6673883d85bbbfdcb17961e17d21692a16ce

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

Feature: killall
  @sudo
  Scenario: killall controller_name
    Given a file named "null_controller.rb" with:
      """ruby
      class NullController < Trema::Controller; end
      """
    And a file named "trema.conf" with:
      """ruby
      vswitch { datapath_id 0xabc }
      vhost('host1') { ip '192.168.0.1' }
      vhost('host2') { ip '192.168.0.2' }
      link '0xabc', 'host1'
      link '0xabc', 'host2'
      """
    And a file named "void_controller.rb" with:
      """ruby
      class VoidController < Trema::Controller; end
      """
    And I successfully run `trema run null_controller.rb -c trema.conf -d`
    And I successfully run `trema run void_controller.rb -p 6654 -d`
    When I successfully run `trema killall NullController`
    Then virtual links should not exist 
    And the following files should not exist:
      | NullController.pid |
      | vhost.host1.pid    |
      | vhost.host2.pid    |
    And the following files should exist:
      | VoidController.pid |

  @sudo
  Scenario: "Controller process does not exist" error
    When I run `trema killall NO_SUCH_NAME`
    Then the exit status should not be 0
    And the output should contain:
    """
    Controller process "NO_SUCH_NAME" does not exist.
    """

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trema-0.8.4 features/trema_killall/killall.feature
trema-0.8.3 features/trema_killall/killall.feature
trema-0.8.2 features/trema_killall/killall.feature
trema-0.8.1 features/trema_killall/killall.feature
trema-0.8.0 features/trema_killall/killall.feature
trema-0.7.1 features/trema_killall/killall.feature
trema-0.7.0 features/trema_killall/killall.feature
trema-0.6.0 features/trema_killall/killall.feature