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 9196896 commit 39c6805
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions features/features_read.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,32 @@ Feature: Pio::Features.read
Given a packet data file "features_request.raw"
When I try to parse the file with "Features" class
Then it should finish successfully
And the parsed data have the follwing field and value:
| field | value |
| class | Pio::Features::Request |
| ofp_version | 1 |
| message_type | 5 |
| message_length | 8 |
| transaction_id | 2 |
| xid | 2 |
| body | |

Scenario: features_reply.raw
Given a packet data file "features_reply.raw"
When I try to parse the file with "Features" class
Then it should finish successfully
And the parsed data have the follwing field and value:
| field | value |
| class | Pio::Features::Reply |
| ofp_version | 1 |
| message_type | 6 |
| message_length | 176 |
| transaction_id | 2 |
| xid | 2 |
| datapath_id | 1 |
| dpid | 1 |
| n_buffers | 256 |
| n_tables | 1 |
| capabilities | [:flow_stats, :table_stats, :port_stats, :arp_match_ip] |
| actions | [:output, :set_vlan_vid, :set_vlan_pcp, :strip_vlan, :set_dl_src, :set_dl_dst, :set_nw_src, :set_nw_dst, :set_nw_tos, :set_tp_src, :set_tp_dst, :enqueue] |
| ports.length | 3 |

0 comments on commit 39c6805

Please sign in to comment.