Skip to content

Commit

Permalink
Merge pull request #110 from trema/feature/refactor_echo_feature
Browse files Browse the repository at this point in the history
More cucumber tests.
  • Loading branch information
yasuhito committed Jan 9, 2015
2 parents c89bc65 + e7b90b7 commit 9196896
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions features/echo_read.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
Feature: Pio::Echo.read
Scenario: echo.raw
Given a packet data file "echo.raw"
Scenario: echo_request.raw
Given a packet data file "echo_request.raw"
When I try to parse the file with "Echo" class
Then it should finish successfully
And the parsed data have the follwing field and value:
| field | value |
| class | Pio::Echo::Request |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |

Scenario: echo_reply.raw
Given a packet data file "echo_reply.raw"
When I try to parse the file with "Echo" class
Then it should finish successfully
And the parsed data have the follwing field and value:
| field | value |
| class | Pio::Echo::Reply |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 8 |
| transaction_id | 6 |
| xid | 6 |
| body | |

Binary file removed features/packet_data/echo.raw
Binary file not shown.

0 comments on commit 9196896

Please sign in to comment.