Sha256: 280824bc4d3c562311c1beb0edc06f1ee21832a07b2d7aac7954e2436ef32de7

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

@open_flow13
Feature: Apply
  Scenario: new()
    When I create an OpenFlow instruction with:
      """
      Pio::Apply.new
      """
    Then the message has the following fields and values:
      | field              | value                  |
      | class              | Pio::OpenFlow13::Apply |
      | instruction_type   | 4                      |
      | instruction_length | 8                      |
      | actions            | []                     |

  Scenario: new(SendOutPort.new(1))
    When I create an OpenFlow instruction with:
      """
      Pio::Apply.new(Pio::SendOutPort.new(1))
      """
    Then the message has the following fields and values:
      | field               |                        value |
      | class               |       Pio::OpenFlow13::Apply |
      | instruction_type    |                            4 |
      | instruction_length  |                           24 |
      | actions.size        |                            1 |
      | actions.at(0).class | Pio::OpenFlow13::SendOutPort |
      | actions.at(0).port  |                            1 |

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pio-0.30.2 features/open_flow13/apply_actions.feature
pio-0.30.1 features/open_flow13/apply_actions.feature