Sha256: 753b2f8eaf202ec5d382f7c249a202ca3d81ed53edd71e38d16de1487bcad828

Contents?: true

Size: 1.61 KB

Versions: 5

Compression:

Stored size: 1.61 KB

Contents

Feature: Apply-Actions instruction.
  Background:
    Given I use OpenFlow 1.3

  Scenario: new()
    When I try to create an OpenFlow instruction with:
      """
      Pio::Apply.new
      """
    Then it should finish successfully
    And the message have the following fields and values:
      | field              | value      |
      | class              | Pio::Apply |
      | instruction_type   | 4          |
      | instruction_length | 8          |
      | actions            | []         |

  Scenario: new(SendOutPort.new(1))
    When I try to create an OpenFlow instruction with:
      """
      Pio::Apply.new(SendOutPort.new(1))
      """
    Then it should finish successfully
    And the message have the following fields and values:
      | field               |            value |
      | class               |       Pio::Apply |
      | instruction_type    |                4 |
      | instruction_length  |               24 |
      | actions.size        |                1 |
      | actions.at(0).class | Pio::SendOutPort |
      | actions.at(0).port  |                1 |

  Scenario: read
    When I try to parse a file named "open_flow13/apply_actions.raw" with "Pio::Apply" class
    Then it should finish successfully
    And the message have the following fields and values:
      | field               |            value |
      | class               |       Pio::Apply |
      | instruction_type    |                4 |
      | instruction_length  |               24 |
      | actions.size        |                1 |
      | actions.at(0).class | Pio::SendOutPort |
      | actions.at(0).port  |                1 |

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pio-0.23.1 features/open_flow13/apply_actions.feature
pio-0.23.0 features/open_flow13/apply_actions.feature
pio-0.22.0 features/open_flow13/apply_actions.feature
pio-0.21.1 features/open_flow13/apply_actions.feature
pio-0.21.0 features/open_flow13/apply_actions.feature