Contents

Echo::Request

@open_flow13

Scenario: new

  • When I create an OpenFlow message with:
    Pio::Echo::Request.new
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    body
    user_data

Scenario: new(transaction_id: 123)

  • When I create an OpenFlow message with:
    Pio::Echo::Request.new(transaction_id: 123)
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id123
    xid123
    body
    user_data

Scenario: new(body: 'echo request body')

  • When I create an OpenFlow message with:
    Pio::Echo::Request.new(body: 'echo request body')
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    bodyecho request body
    user_dataecho request body

Scenario: read (no message body)

  • When I parse a file named "open_flow13/echo_request_no_body.raw" with "Pio::Echo::Request" class
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    body
    user_data

Scenario: read

  • When I parse a file named "open_flow13/echo_request_body.raw" with "Pio::Echo::Request" class
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    bodyhogehogehogehogehoge
    user_datahogehogehogehogehoge

Source: features/open_flow13/echo_request.feature at commit 40dd0fb6, Pio (GPL license).