features/trema_stop/stop.feature in trema-0.8.4 vs features/trema_stop/stop.feature in trema-0.9.0

- old
+ new

@@ -1,8 +1,13 @@ Feature: stop Background: - Given a file named "switch_disconnected_controller.rb" with: + Given I set the environment variables to: + | variable | value | + | TREMA_LOG_DIR | . | + | TREMA_PID_DIR | . | + | TREMA_SOCKET_DIR | . | + And a file named "switch_disconnected_controller.rb" with: """ruby class SwitchDisconnectedController < Trema::Controller def switch_disconnected(dpid) logger.info "Switch #{dpid.to_hex} is disconnected." end @@ -21,19 +26,19 @@ And I trema run "switch_disconnected_controller.rb" with the configuration "trema.conf" @sudo Scenario: stop a switch When I successfully run `trema stop 0xabc` - And I successfully run `sleep 10` + And sleep 10 Then the file "SwitchDisconnectedController.log" should contain: """ Switch 0xabc is disconnected. """ @sudo Scenario: stop a host When I successfully run `trema stop host1` - And I successfully run `sleep 5` + And sleep 5 Then the file "vhost.host1.pid" should not exist @sudo Scenario: stop NO_SUCH_NAME When I run `trema stop NO_SUCH_NAME`