Sha256: b539e175ecf47a0935c3241fdfdbf005d41ee9f3ea4cc500d3cb088fdab1ed14

Contents?: true

Size: 1.54 KB

Versions: 6

Compression:

Stored size: 1.54 KB

Contents

Feature: kill a trema process with `trema kill' command

  As a Trema user
  I want to kill a trema processes with `trema kill' command
  So that I can emulate failures on switch/host/link


  Scenario: kill a switch
    Given I try trema run "./src/examples/switch_monitor/switch-monitor.rb" with following configuration (backgrounded):
      """
      vswitch { datapath_id "0x1" }
      vswitch { datapath_id "0x2" }
      vswitch { datapath_id "0x3" }
      """
      And wait until "SwitchMonitor" is up
    When I try to run "./trema kill 0x1"
      And *** sleep 1 ***
    Then vswitch 0x1 is terminated


  Scenario: kill a host
    Given I try trema run "./src/examples/switch_monitor/switch-monitor.rb" with following configuration (backgrounded):
      """
      vswitch { datapath_id "0x1" }
      vhost "host"
      link "0x1", "host"
      """
      And wait until "SwitchMonitor" is up
    When I try to run "./trema kill host"
      And *** sleep 1 ***
    Then host is terminated


  Scenario: kill a controller
    Given I try trema run "./src/examples/switch_monitor/switch-monitor.rb" with following configuration (backgrounded):
      """
      vswitch { datapath_id "0x1" }
      """
      And wait until "SwitchMonitor" is up
    When I try to run "./trema kill SwitchMonitor"
      And *** sleep 1 ***
    Then SwitchMonitor is terminated


  Scenario: trema help kill
    When I try to run "./trema help kill"
    Then the output should be:
      """
      Usage: trema kill NAME [OPTIONS ...]
          -h, --help
          -v, --verbose

      """

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trema-0.2.5 features/trema.kill.feature
trema-0.2.4 features/trema.kill.feature
trema-0.2.3 features/trema.kill.feature
trema-0.2.2.1 features/trema.kill.feature
trema-0.2.2 features/trema.kill.feature
trema-0.2.1 features/trema.kill.feature