Sha256: 5017c0512363c8fdc8d85a0f4730bf4c4b26d27fec663fa17667841ebdb0808e

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 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: dump_flows
    Given I type "vswitch '0xabc'"
    When I type "dump_flows 0xabc"
    And I type "quit"
    And sleep 1
    Then the output should contain "NXST_FLOW reply"

  @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

1 entries across 1 versions & 1 rubygems

Version Path
phut-0.7.5 features/shell.feature