Skip to content

Commit

Permalink
More cucumber tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Jan 9, 2015
1 parent c89bc65 commit e7b90b7
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
@@ -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 e7b90b7

Please sign in to comment.