-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from trema/feature/refactor_echo_feature
More cucumber tests.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.