Skip to content

Commit

Permalink
Add open_flow13/send_out_port.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Sep 2, 2015
1 parent e5016a8 commit 5803880
Show file tree
Hide file tree
Showing 81 changed files with 637 additions and 493 deletions.
2 changes: 1 addition & 1 deletion Rakefile
@@ -1,7 +1,7 @@
require 'bundler/gem_tasks'

RELISH_PROJECT = 'trema/pio'
FLAY_THRESHOLD = 807
FLAY_THRESHOLD = 845

task default: :travis
task test: [:spec, :cucumber]
Expand Down
4 changes: 2 additions & 2 deletions features/open_flow10/bad_request.feature
Expand Up @@ -13,7 +13,7 @@ Feature: Pio::Error::BadRequest
| field | value |
| ofp_version | 1 |
| message_type | 1 |
| message_length | 20 |
| length | 20 |
| transaction_id | 0 |
| xid | 0 |
| error_type | :bad_request |
Expand All @@ -27,7 +27,7 @@ Feature: Pio::Error::BadRequest
| field | value |
| ofp_version | 1 |
| message_type | 1 |
| message_length | 20 |
| length | 20 |
| transaction_id | 0 |
| xid | 0 |
| error_type | :bad_request |
Expand Down
8 changes: 4 additions & 4 deletions features/open_flow10/barrier_reply.feature
Expand Up @@ -10,7 +10,7 @@ Feature: Pio::Barrier::Reply
| field | value |
| ofp_version | 1 |
| message_type | 19 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
Expand All @@ -25,7 +25,7 @@ Feature: Pio::Barrier::Reply
| field | value |
| ofp_version | 1 |
| message_type | 19 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -40,7 +40,7 @@ Feature: Pio::Barrier::Reply
| field | value |
| ofp_version | 1 |
| message_type | 19 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -52,7 +52,7 @@ Feature: Pio::Barrier::Reply
| field | value |
| ofp_version | 1 |
| message_type | 19 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
8 changes: 4 additions & 4 deletions features/open_flow10/barrier_request.feature
Expand Up @@ -10,7 +10,7 @@ Feature: Pio::Barrier::Request
| field | value |
| ofp_version | 1 |
| message_type | 18 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
Expand All @@ -25,7 +25,7 @@ Feature: Pio::Barrier::Request
| field | value |
| ofp_version | 1 |
| message_type | 18 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -40,7 +40,7 @@ Feature: Pio::Barrier::Request
| field | value |
| ofp_version | 1 |
| message_type | 18 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -52,7 +52,7 @@ Feature: Pio::Barrier::Request
| field | value |
| ofp_version | 1 |
| message_type | 18 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
26 changes: 13 additions & 13 deletions features/open_flow10/echo_reply.feature
Expand Up @@ -10,7 +10,7 @@ Feature: Pio::Echo::Reply
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
Expand All @@ -26,7 +26,7 @@ Feature: Pio::Echo::Reply
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -42,7 +42,7 @@ Feature: Pio::Echo::Reply
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -65,7 +65,7 @@ Feature: Pio::Echo::Reply
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 23 |
| length | 23 |
| transaction_id | 0 |
| xid | 0 |
| body | echo reply body |
Expand All @@ -81,7 +81,7 @@ Feature: Pio::Echo::Reply
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 23 |
| length | 23 |
| transaction_id | 0 |
| xid | 0 |
| body | echo reply body |
Expand All @@ -91,14 +91,14 @@ Feature: Pio::Echo::Reply
When I try to parse a file named "open_flow10/echo_reply.raw" with "Pio::Echo::Reply" class
Then it should finish successfully
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| message_length | 8 |
| transaction_id | 6 |
| xid | 6 |
| body | |
| user_data | |
| field | value |
| ofp_version | 1 |
| message_type | 3 |
| length | 8 |
| transaction_id | 6 |
| xid | 6 |
| body | |
| user_data | |

Scenario: parse error
When I try to parse a file named "open_flow10/features_reply.raw" with "Pio::Echo::Reply" class
Expand Down
12 changes: 6 additions & 6 deletions features/open_flow10/echo_request.feature
Expand Up @@ -10,7 +10,7 @@ Feature: Pio::Echo::Request
| field | value |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
Expand All @@ -26,7 +26,7 @@ Feature: Pio::Echo::Request
| field | value |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -42,7 +42,7 @@ Feature: Pio::Echo::Request
| field | value |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 8 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| body | |
Expand All @@ -58,7 +58,7 @@ Feature: Pio::Echo::Request
| field | value |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 25 |
| length | 25 |
| transaction_id | 0 |
| xid | 0 |
| body | echo request body |
Expand All @@ -74,7 +74,7 @@ Feature: Pio::Echo::Request
| field | value |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 25 |
| length | 25 |
| transaction_id | 0 |
| xid | 0 |
| body | echo request body |
Expand All @@ -87,7 +87,7 @@ Feature: Pio::Echo::Request
| field | value |
| ofp_version | 1 |
| message_type | 2 |
| message_length | 8 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| body | |
Expand Down
14 changes: 7 additions & 7 deletions features/open_flow10/enqueue.feature
@@ -1,17 +1,17 @@
@open_flow10
Feature: Pio::Enqueue

Scenario: new(port_number: 1, queue_id: 2)
Scenario: new(port: 1, queue_id: 2)
When I try to create an OpenFlow action with:
"""
Pio::Enqueue.new(port_number: 1, queue_id: 2)
Pio::Enqueue.new(port: 1, queue_id: 2)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 11 |
| message_length | 16 |
| port_number | 1 |
| queue_id | 2 |
| field | value |
| action_type | 11 |
| length | 16 |
| port | 1 |
| queue_id | 2 |


4 changes: 2 additions & 2 deletions features/open_flow10/features_reply.feature
Expand Up @@ -25,7 +25,7 @@ Feature: Pio::Features::Reply
| field | value |
| ofp_version | 1 |
| message_type | 6 |
| message_length | 80 |
| length | 80 |
| transaction_id | 0 |
| xid | 0 |
| datapath_id | 291 |
Expand Down Expand Up @@ -54,7 +54,7 @@ Feature: Pio::Features::Reply
| field | value |
| ofp_version | 1 |
| message_type | 6 |
| message_length | 176 |
| length | 176 |
| transaction_id | 2 |
| xid | 2 |
| datapath_id | 1 |
Expand Down
56 changes: 28 additions & 28 deletions features/open_flow10/features_request.feature
Expand Up @@ -7,13 +7,13 @@ Feature: Pio::Features::Request
"""
Then it should finish successfully
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| message_length | 8 |
| transaction_id | 0 |
| xid | 0 |
| user_data | |
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| length | 8 |
| transaction_id | 0 |
| xid | 0 |
| user_data | |

Scenario: new(transaction_id: 123)
When I try to create an OpenFlow message with:
Expand All @@ -22,13 +22,13 @@ Feature: Pio::Features::Request
"""
Then it should finish successfully
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| message_length | 8 |
| transaction_id | 123 |
| xid | 123 |
| user_data | |
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| user_data | |

Scenario: new(xid: 123)
When I try to create an OpenFlow message with:
Expand All @@ -37,25 +37,25 @@ Feature: Pio::Features::Request
"""
Then it should finish successfully
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| message_length | 8 |
| transaction_id | 123 |
| xid | 123 |
| user_data | |
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| length | 8 |
| transaction_id | 123 |
| xid | 123 |
| user_data | |

Scenario: read
When I try to parse a file named "open_flow10/features_request.raw" with "Pio::Features::Request" class
Then it should finish successfully
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| message_length | 8 |
| transaction_id | 2 |
| xid | 2 |
| user_data | |
| field | value |
| ofp_version | 1 |
| message_type | 5 |
| length | 8 |
| transaction_id | 2 |
| xid | 2 |
| user_data | |

Scenario: parse error
When I try to parse a file named "open_flow10/echo_request.raw" with "Pio::Features::Request" class
Expand Down

0 comments on commit 5803880

Please sign in to comment.