Remove useless code in web UI tests

This commit is contained in:
Théophile Diot 2024-01-04 13:37:40 +00:00
parent 3e63f2ad0c
commit ff7cb04c31
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -22,11 +22,8 @@ from selenium.common.exceptions import ElementClickInterceptedException, Timeout
default_server = "127.0.0.1"
integration_path = Path(sep, "usr", "share", "bunkerweb", "INTEGRATION")
os_release_path = Path(sep, "etc", "os-release")
if getenv("KUBERNETES_MODE", "no").lower() == "yes" or getenv("SWARM_MODE", "no").lower() == "yes" or getenv("AUTOCONF_MODE", "no").lower() == "yes":
default_server = "192.168.0.2"
elif os_release_path.is_file() and "Alpine" in os_release_path.read_text(encoding="utf-8"):
if os_release_path.is_file() and "Alpine" in os_release_path.read_text(encoding="utf-8"):
default_server = "192.168.0.2"
ready = False