Sha256: 1e9ea0777ee22cf1a63df47d02afa97e85866e48cef38e90d5462f91f60adf8c
Contents?: true
Size: 1.66 KB
Versions: 3
Compression:
Stored size: 1.66 KB
Contents
Feature: hello_failed handler Background: Given I set the environment variables to: | variable | value | | TREMA_LOG_DIR | . | | TREMA_PID_DIR | . | | TREMA_SOCKET_DIR | . | And 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trema-0.10.1 | features/handlers/hello_failed.feature |
trema-0.10.0 | features/handlers/hello_failed.feature |
trema-0.9.0 | features/handlers/hello_failed.feature |