Sha256: 50cc4110ff84439f24d85e33c33d8cb4d2bca018f888053963c837704e8dc805

Contents?: true

Size: 1.22 KB

Versions: 19

Compression:

Stored size: 1.22 KB

Contents

Feature: Shell
  Background:
    Given I run `phut -v` interactively
    And I wait for stdout to contain "phut>"

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

  @shell
  Scenario: vswitch STRING
    When I type "vswitch '0xabc'"
    And I type "quit"
    And I run `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 I run `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 I run `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

19 entries across 19 versions & 1 rubygems

Version Path
phut-0.7.4 features/shell.feature
phut-0.7.3 features/shell.feature
phut-0.7.2 features/shell.feature
phut-0.7.1 features/shell.feature
phut-0.7.0 features/shell.feature
phut-0.6.11 features/shell.feature
phut-0.6.10 features/shell.feature
phut-0.6.9 features/shell.feature
phut-0.6.8 features/shell.feature
phut-0.6.7 features/shell.feature
phut-0.6.6 features/shell.feature
phut-0.6.5 features/shell.feature
phut-0.6.4 features/shell.feature
phut-0.6.3 features/shell.feature
phut-0.6.2 features/shell.feature
phut-0.6.1 features/shell.feature
phut-0.6.0 features/shell.feature
phut-0.5.0 features/shell.feature
phut-0.4.0 features/shell.feature