Sha256: 6616a7faa22a09167e52086aea51ab3794f422a20fd5f64e4f3f56a75ef51bf6

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

@open_flow10
Feature: Pio::Error::BadRequest

  Request was not understood error.

  Scenario: new (raw_data = Echo request 1.3)
    When I try to create an OpenFlow message with:
      """
      Pio::Error::BadRequest.new(raw_data: Pio::OpenFlow13::Echo::Request.new.to_binary)
      """
    Then it should finish successfully
    And the message has the following fields and values:
      | field           |        value |
      | ofp_version     |            1 |
      | message_type    |            1 |
      | message_length  |           20 |
      | transaction_id  |            0 |
      | xid             |            0 |
      | error_type      | :bad_request |
      | error_code      | :bad_version |
      | raw_data.length |            8 |

  Scenario: read
    When I try to parse a file named "open_flow10/bad_request.raw" with "Pio::Error::BadRequest" class
    Then it should finish successfully
    And the message has the following fields and values:
      | field           |        value |
      | ofp_version     |            1 |
      | message_type    |            1 |
      | message_length  |           20 |
      | transaction_id  |            0 |
      | xid             |            0 |
      | error_type      | :bad_request |
      | error_code      | :bad_version |
      | raw_data.length |            8 |

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pio-0.30.0 features/open_flow10/bad_request.feature
pio-0.29.0 features/open_flow10/bad_request.feature
pio-0.28.1 features/open_flow10/bad_request.feature
pio-0.28.0 features/open_flow10/bad_request.feature
pio-0.27.2 features/open_flow10/bad_request.feature