Sha256: 06d4e3be22a41f1fa40b63e6bf085f3db6287e42d18015fd5a85613fc9f8ce6e

Contents?: true

Size: 1.34 KB

Versions: 22

Compression:

Stored size: 1.34 KB

Contents

Feature: kill command

  In order to test event handling or just kill unwanted processes
  As a developer using Trema
  I want to execute "trema kill" command

  Background:
    Given a file named "switch_monitor.conf" with:
      """
      vswitch { datapath_id 0x1 }
      vswitch { datapath_id 0x2 }
      vswitch { datapath_id 0x3 }

      vhost "host1"
      vhost "host2"
      vhost "host3"

      link "0x1", "host1"
      link "0x2", "host2"
      link "0x3", "host3"
      """
    And I successfully run `trema run ../../src/examples/switch_monitor/switch-monitor.rb -c switch_monitor.conf -d`

  @slow_process
  Scenario: kill a switch
    When I run `trema kill 0x1`
    Then the vswitch "0x1" is terminated

  @slow_process
  Scenario: kill a host
    When I run `trema kill host1`
    Then the vhost "host1" is terminated

  @slow_process
  Scenario: kill hosts
    When I run `trema kill host1 host2`
    Then the vhost "host1" is terminated
     And the vhost "host2" is terminated

  @slow_process
  Scenario: kill a controller
    When I run `trema kill SwitchMonitor`
    Then the controller "SwitchMonitor" is terminated

  Scenario: no argument
    When I run `trema kill`
    Then the output should contain "name is required"

  Scenario: wrong name
    When I run `trema kill nosuchname`
    Then the output should contain "unknown name: nosuchname"

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trema-0.4.5 features/trema_commands/kill.feature
trema-0.4.4 features/trema_commands/kill.feature
trema-0.4.3 features/trema_commands/kill.feature
trema-0.4.2 features/trema_commands/kill.feature
trema-0.4.1 features/trema_commands/kill.feature
trema-0.4.0 features/trema_commands/kill.feature
trema-0.3.21 features/trema_commands/kill.feature
trema-0.3.20 features/trema_commands/kill.feature
trema-0.3.19 features/trema_commands/kill.feature
trema-0.3.18 features/trema_commands/kill.feature
trema-0.3.17 features/trema_commands/kill.feature
trema-0.3.16 features/trema_commands/kill.feature
trema-0.3.15 features/trema_commands/kill.feature
trema-0.3.14 features/trema_commands/kill.feature
trema-0.3.13 features/trema_commands/kill.feature
trema-0.3.12 features/trema_commands/kill.feature
trema-0.3.11 features/trema_commands/kill.feature
trema-0.3.10 features/trema_commands/kill.feature
trema-0.3.9 features/trema_commands/kill.feature
trema-0.3.8 features/trema_commands/kill.feature