Test for changing address.
This commit is contained in:
parent
72df9189a6
commit
b5f5cbdbbe
@ -22,3 +22,10 @@ Feature: Server Start
|
|||||||
And it is running
|
And it is running
|
||||||
When the home page is accessed
|
When the home page is accessed
|
||||||
Then the status should be OK
|
Then the status should be OK
|
||||||
|
|
||||||
|
Scenario: Start using the server on an alternate address
|
||||||
|
Given a server
|
||||||
|
And the address is changed
|
||||||
|
And it is running
|
||||||
|
When the home page is accessed
|
||||||
|
Then the status should be OK
|
||||||
|
@ -22,6 +22,12 @@ def set_to_safe_port(server):
|
|||||||
server.set_safe_port()
|
server.set_safe_port()
|
||||||
|
|
||||||
|
|
||||||
|
@given("the address is changed")
|
||||||
|
def set_to_host_address(server):
|
||||||
|
"""Sets the server to the host address."""
|
||||||
|
server.set_to_host_ip()
|
||||||
|
|
||||||
|
|
||||||
@given("it is running")
|
@given("it is running")
|
||||||
def start_server(server):
|
def start_server(server):
|
||||||
"""Start up the server."""
|
"""Start up the server."""
|
||||||
|
Loading…
Reference in New Issue
Block a user