Sha256: deb9857c775ecb1037e3a138308e9b236a82b2c38ac54df01a83862bfaf0ced0
Contents?: true
Size: 1.48 KB
Versions: 8
Compression:
Stored size: 1.48 KB
Contents
Feature: hello_failed handler Background: Given a file named "hello_fails.rb" with: """ruby require 'version_mismatch' class HelloFails < Trema::Controller def hello_failed(message) logger.info 'Hello failed.' end end """ And a file named "trema.conf" with: """ruby vswitch { datapath_id 0xabc } """ @sudo Scenario: invoke hello_failed handler Given I use OpenFlow 1.0 And a file named "version_mismatch.rb" with: """ruby module Trema class Switch private # force trema to send Hello1.3 on startup. def exchange_hello_messages write Pio::OpenFlow13::Hello.new expect_receiving Hello end end end """ When I trema run "hello_fails.rb" with the configuration "trema.conf" Then the file "HelloFails.log" should contain "Hello failed." @sudo Scenario: invoke hello_failed handler (OpenFlow 1.3) Given I use OpenFlow 1.3 And a file named "version_mismatch.rb" with: """ruby module Trema class Switch private # force trema to send Hello1.0 on startup. def exchange_hello_messages write Pio::OpenFlow10::Hello.new expect_receiving Hello end end end """ When I trema run "hello_fails.rb" with the configuration "trema.conf" Then the file "HelloFails.log" should contain "Hello failed."
Version data entries
8 entries across 8 versions & 1 rubygems