From a3b02323513bc395eaa4520320239e7e45abacea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Mon, 17 Mar 2025 11:23:04 +0100 Subject: [PATCH] Add landing page test to the basic test set (#3928) We check that landing page is working when the network is down but we don't check it in the happy path. Add its test to make it more obvious when the just landing page is broken. --- tests/smoke_test/test_basic.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/smoke_test/test_basic.py b/tests/smoke_test/test_basic.py index 1b275685e..ce73f677f 100644 --- a/tests/smoke_test/test_basic.py +++ b/tests/smoke_test/test_basic.py @@ -65,6 +65,12 @@ def test_supervisor_logs(shell): _LOGGER.info("%s", "\n".join(output)) +@pytest.mark.dependency(depends=["test_init"]) +def test_landing_page(shell): + web_index = shell.run_check("curl http://localhost:8123") + assert "" in " ".join(web_index) + + def test_systemctl_status(shell): output = shell.run_check("systemctl --no-pager -l status -a || true") _LOGGER.info("%s", "\n".join(output))