Sha256: 9027914c634470f0c5e0f4135cfc3959edb0618d297b2c3aff014e9b75b34866

Contents?: true

Size: 1.9 KB

Versions: 32

Compression:

Stored size: 1.9 KB

Contents

Feature: "Switch Info" sample application

  In order to learn how to acquire switch spec
  As a developer using Trema
  I want to execute "Switch Info" sample application

  @slow_process
  Scenario: Run "Switch Info" C example
    Given a file named "switch_info.conf" with:
      """
      vswitch { datapath_id 0xabc }
      """
     And I run `trema run ../../objects/examples/switch_info/switch_info -c switch_info.conf -d`
     And *** sleep 2 ***
    Then the file "../../tmp/log/switch_info.log" should contain "datapath_id: 0xabc"
     And the file "../../tmp/log/switch_info.log" should contain "#ports: 1"

  @slow_process
  Scenario: Run "Switch Info" C example with two switches
   Given a file named "switch_info.conf" with:
      """
      vswitch { datapath_id 0xabc }
      vswitch { datapath_id 0xdef }
      link "0xabc", "0xdef"
      """
     And I run `trema run ../../objects/examples/switch_info/switch_info -c switch_info.conf -d`
     And *** sleep 2 ***
    Then the file "../../tmp/log/switch_info.log" should contain "#ports: 2"

  @slow_process
  Scenario: Run "Switch Info" Ruby example
    Given a file named "switch_info.conf" with:
      """
      vswitch { datapath_id 0xabc }
      """
     And I run `trema run ../../src/examples/switch_info/switch-info.rb -c switch_info.conf -d`
     And *** sleep 2 ***
    Then the file "../../tmp/log/SwitchInfo.log" should contain "datapath_id: 0xabc"
     And the file "../../tmp/log/SwitchInfo.log" should contain "#ports: 1"

  @slow_process
  Scenario: Run "Switch Info" Ruby example with two switches
   Given a file named "switch_info.conf" with:
      """
      vswitch { datapath_id 0xabc }
      vswitch { datapath_id 0xdef }
      link "0xabc", "0xdef"
      """
     And I run `trema run ../../src/examples/switch_info/switch-info.rb -c switch_info.conf -d`
     And *** sleep 2 ***
    Then the file "../../tmp/log/SwitchInfo.log" should contain "#ports: 2"

Version data entries

32 entries across 32 versions & 1 rubygems

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