Sha256: ca724da2565698e1c68ce52417c92299388a88cfbbac422e52c253ac88cb3782
Contents?: true
Size: 1.86 KB
Versions: 5
Compression:
Stored size: 1.86 KB
Contents
@open_flow13 Feature: Pio::Features::Request Scenario: new When I try to create an OpenFlow message with: """ Pio::Features::Request.new """ Then it should finish successfully And the message has the following fields and values: | field | value | | ofp_version | 4 | | message_type | 5 | | message_length | 8 | | transaction_id | 0 | | xid | 0 | | body | | Scenario: new(transaction_id: 123) When I try to create an OpenFlow message with: """ Pio::Features::Request.new(transaction_id: 123) """ Then it should finish successfully And the message has the following fields and values: | field | value | | ofp_version | 4 | | message_type | 5 | | message_length | 8 | | transaction_id | 123 | | xid | 123 | | body | | Scenario: new(unknown_attr: 'foo') and error When I try to create an OpenFlow message with: """ Pio::Features::Request.new(unknown_attr: 'foo') """ Then it should fail with "RuntimeError", "Unknown option: unknown_attr" Scenario: read When I try to parse a file named "open_flow13/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 | 4 | | message_type | 5 | | message_length | 8 | | transaction_id | 0 | | xid | 0 | | body | | Scenario: parse error When I try to parse a file named "open_flow10/hello.raw" with "Pio::Features::Request" class Then it should fail with "Pio::ParseError", "Invalid OpenFlow13 Features Request message."
Version data entries
5 entries across 5 versions & 1 rubygems