DSL parser
Scenario: name conflict (vsiwtch and vswitch)
- Given a file named "
phut.conf" with:rubyvswitch { dpid 0xabc } vswitch { dpid 0xabc } - When I do phut run "
phut.conf" - Then the exit status should not be 0
- And the stderr should contain:
text
a Vswitch #<Vswitch name: "0xabc", dpid: 0xabc, openflow_version: 1.0, tcp_port: 6653> already exists
Scenario: name conflict (vhost and vhost)
- Given a file named "
phut.conf" with:rubyvhost { ip '192.168.0.1' } vhost { ip '192.168.0.1' } - When I do phut run "
phut.conf" - Then the exit status should not be 0
- And the stderr should contain:
text
error: 192.168.0.1 is already running
Source: features/dsl/error.feature at commit babb3554, Phut (GPL license).