From b5f5cbdbbec79aa1f2fc4971c59b6f31306d18f1 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 19 Jun 2022 08:51:32 -0400 Subject: [PATCH] Test for changing address. --- tests/features/server_start.feature | 7 +++++++ tests/step_defs/test_server_start.py | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/tests/features/server_start.feature b/tests/features/server_start.feature index ac33727..54608c3 100644 --- a/tests/features/server_start.feature +++ b/tests/features/server_start.feature @@ -22,3 +22,10 @@ Feature: Server Start And it is running When the home page is accessed 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 diff --git a/tests/step_defs/test_server_start.py b/tests/step_defs/test_server_start.py index 7cfbb43..b10b7e0 100644 --- a/tests/step_defs/test_server_start.py +++ b/tests/step_defs/test_server_start.py @@ -22,6 +22,12 @@ def set_to_safe_port(server): 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") def start_server(server): """Start up the server."""