Add logs to test_nginx_luci_forwarding_access()

This commit is contained in:
Albrecht Lohofener
2024-09-25 11:22:17 +02:00
parent 3ee34dcb02
commit 3dcd9f9ffe
+2 -2
View File
@@ -302,10 +302,10 @@ def test_nginx_luci_forwarding_access(docker_services, parameter):
if parameter[1] == 'true':
try:
time.sleep(10) # Give OpenWrt some extra time to boot up finally
response = requests.get("https://localhost:9000", verify=False)
assert ('LuCI - Lua Configuration Interface' in response.content.decode()) == True
except Exception as excinfo:
except Exception as excinfo:
print(get_logs())
pytest.fail(f"Unexpected exception raised: {excinfo}")
if parameter[1] == 'false':