Sha256: 79f9c2d494cb1475dcb3e9b86891fb118ef71149fe32a40f31c66457a1b2c178

Contents?: true

Size: 1.48 KB

Versions: 22

Compression:

Stored size: 1.48 KB

Contents

Feature: The link directive of phut DSL
  @sudo
  Scenario: link name_a, name_b
    Given a file named "network.conf" with:
      """
      vswitch { dpid 0xabc }
      vhost { ip '192.168.0.1' }
      link '0xabc', '192.168.0.1'
      """
    When I do phut run "network.conf"
    Then a link is created between "0xabc" and "192.168.0.1"

  @sudo
  Scenario: link alias_a, alias_b
    Given a file named "network.conf" with:
      """
      vswitch('my_switch') { dpid 0xabc }
      vhost('host1') { ip '192.168.0.1' }
      link 'my_switch', 'host1'
      """
    When I do phut run "network.conf"
    Then a link is created between "my_switch" and "host1"

  @sudo
  Scenario: connect multiple links to a switch
    Given a file named "network.conf" with:
      """
      vswitch { datapath_id 0xabc }

      vhost('host1') {
        ip '192.168.0.1'
      }
      vhost('host2') {
        ip '192.168.0.2'
      }
      vhost('host3') {
        ip '192.168.0.3'
      }

      link '0xabc', 'host1'
      link '0xabc', 'host2'
      link '0xabc', 'host3'
      """
    When I do phut run "network.conf"
    And I run `phut show 0xabc`
    Then a link is created between "0xabc" and "host1"
    And a link is created between "0xabc" and "host2"
    And a link is created between "0xabc" and "host3"
    And the output from "phut show 0xabc" should contain "1(0xabc_1)"
    And the output from "phut show 0xabc" should contain "2(0xabc_2)"
    And the output from "phut show 0xabc" should contain "3(0xabc_3)"

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
phut-0.7.7 features/dsl_link.feature
phut-0.7.6 features/dsl_link.feature
phut-0.7.5 features/dsl_link.feature
phut-0.7.4 features/dsl_link.feature
phut-0.7.3 features/dsl_link.feature
phut-0.7.2 features/dsl_link.feature
phut-0.7.1 features/dsl_link.feature
phut-0.7.0 features/dsl_link.feature
phut-0.6.11 features/dsl_link.feature
phut-0.6.10 features/dsl_link.feature
phut-0.6.9 features/dsl_link.feature
phut-0.6.8 features/dsl_link.feature
phut-0.6.7 features/dsl_link.feature
phut-0.6.6 features/dsl_link.feature
phut-0.6.5 features/dsl_link.feature
phut-0.6.4 features/dsl_link.feature
phut-0.6.3 features/dsl_link.feature
phut-0.6.2 features/dsl_link.feature
phut-0.6.1 features/dsl_link.feature
phut-0.6.0 features/dsl_link.feature