Sha256: 95a5c508544a5e2bed1cbe827051c5110690035413a7885e2266167f979e3051

Contents?: true

Size: 811 Bytes

Versions: 3

Compression:

Stored size: 811 Bytes

Contents

Feature: DSL parser
  Scenario: name conflict (vsiwtch and vswitch)
    Given a file named "network.conf" with:
      """ruby
      vswitch { dpid 0xabc }
      vswitch { dpid 0xabc }
      """
    When I do phut run "network.conf"
    Then the exit status should not be 0
    And the stderr should contain:
      """
      The name 0xabc conflicts with vswitch (name = 0xabc, dpid = 0xabc).
      """

  Scenario: name conflict (vhost and vhost)
    Given a file named "network.conf" with:
      """ruby
      vhost { ip '192.168.0.1' }
      vhost { ip '192.168.0.1' }
      """
    When I do phut run "network.conf"
    Then the exit status should not be 0
    And the stderr should contain:
      """
      The name 192.168.0.1 conflicts with vhost (name = 192.168.0.1, IP address = 192.168.0.1).
      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phut-0.7.7 features/dsl.feature
phut-0.7.6 features/dsl.feature
phut-0.7.5 features/dsl.feature