The vhost DSL directive.
Scenario: phut run with "vhost { ip ... }"
- Given a file named "
phut.conf" with:vhost { ip '192.168.0.1' } vhost { ip '192.168.0.2' } link '192.168.0.1', '192.168.0.2' - When I do phut run "
phut.conf" - Then a vhost named "
192.168.0.1" should be running - And a vhost named "
192.168.0.2" should be running
Scenario: phut run with "vhost(alias) { ... }"
- Given a file named "
phut.conf" with:vhost('host1') { ip '192.168.0.1' } vhost('host2') { ip '192.168.0.2' } link 'host1', 'host2' - When I do phut run "
phut.conf" - Then a vhost named "
host1" should be running - And a vhost named "
host2" should be running
Scenario: phut run with "vhost(alias)"
- Given a file named "
phut.conf" with:vhost('host1') vhost('host2') link 'host1', 'host2' - When I do phut run "
phut.conf" - Then a vhost named "
host1" should be running - And a vhost named "
host2" should be running
Source: features/dsl/vhost.feature at commit babb3554, Phut (GPL license).