Sha256: 3f56d1084b7caf5802bcdc112f4e902711c0d99bcaaacb3216c69f4871eb4162

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

Feature: Hello trema sample application

  As a Trema user
  I want to list up OpenFlow switches in my network
  So that I can monitor my switches


  Scenario: switch-monitor
    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 *** sleep 2 ***
      And wait until "SwitchMonitor" is up
    When I try trema off "0x3"
      And *** sleep 2 ***
    Then the log file "SwitchMonitor.log" should match:
      """
      Switch 0x3 is DOWN
      """


  Scenario: switch-monitor in C
    Given I try trema run "./objects/examples/switch_monitor/switch_monitor" with following configuration (backgrounded):
      """
      vswitch { datapath_id 0x1 }
      vswitch { datapath_id 0x2 }
      vswitch { datapath_id 0x3 }
      """
      And *** sleep 2 ***
      And wait until "switch_monitor" is up
    When I try trema off "0x3"
      And *** sleep 2 ***
    Then the log file "switch_monitor.log" should match:
      """
      Switch 0x3 is DOWN
      """

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trema-0.2.2.1 features/example.switch_monitor.feature
trema-0.2.2 features/example.switch_monitor.feature
trema-0.2.1 features/example.switch_monitor.feature
trema-0.2.0 features/example.switch_monitor.feature
trema-0.1.3.2 features/example.switch_monitor.feature
trema-0.1.3.1 features/example.switch_monitor.feature
trema-0.1.3 features/example.switch_monitor.feature