Sha256: b33511e02eb58d208a7a087d135f76f65ad73887a5dc7e5e5f7c230122de9469

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

Feature: Shell
  Background:
    Given I wait 5 seconds for a command to start up
    And I run `phut -v` interactively

  @shell
  Scenario: vswitch NUMBER
    When I type "vswitch 0xabc"
    And I type "quit"
    And sleep 1
    Then a vswitch named "0xabc" should be running

  @shell
  Scenario: vswitch STRING
    When I type "vswitch '0xabc'"
    And I type "quit"
    And sleep 1
    Then a vswitch named "0xabc" should be running

  @shell
  Scenario: vswitch twice and fail
    And I type "vswitch 0xabc"
    When I type "vswitch 0xabc"
    And I type "quit"
    Then the output should contain "Open vSwitch (dpid = 0xabc) is already running!"

  @shell
  Scenario: Kill and .pid is deleted
    And I type "vswitch 0xabc"
    When I type "kill 0xabc"
    And I type "quit"
    And sleep 1
    Then a vswitch named "0xabc" should not be running

  @shell
  Scenario: Kill without run and fail
    When I type "kill 0xabc"
    And I type "quit"
    Then the output should contain "Open vSwitch (dpid = 0xabc) is not running!"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phut-0.7.7 features/shell.feature
phut-0.7.6 features/shell.feature