Contents

Echo::Reply

@open_flow13

Scenario: new

  • When I create an OpenFlow message with:
    Pio::Echo::Reply.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::Reply.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 reply body')

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

Scenario: read (no message body)

  • When I parse a file named "open_flow13/echo_reply_no_body.raw" with "Pio::Echo::Reply" 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_reply_body.raw" with "Pio::Echo::Reply" class
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    bodyhogehogehogehogehoge
    user_datahogehogehogehogehoge

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