mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix SSL cert being verified in automatic web UI tests
This commit is contained in:
parent
eec8b70d88
commit
079ddf9b35
5 changed files with 6 additions and 5 deletions
|
|
@ -167,7 +167,7 @@ location /hello {
|
|||
|
||||
sleep(30)
|
||||
|
||||
resp = get("http://www.example.com/hello")
|
||||
resp = get("http://www.example.com/hello", verify=False)
|
||||
|
||||
if resp.status_code != 404:
|
||||
log_error("The config hasn't been deleted correctly, exiting ...")
|
||||
|
|
@ -221,7 +221,7 @@ location /hello {
|
|||
DRIVER.close()
|
||||
DRIVER.switch_to.window(DRIVER.window_handles[0])
|
||||
|
||||
resp = get("http://www.example.com/hello")
|
||||
resp = get("http://www.example.com/hello", verify=False)
|
||||
|
||||
if resp.status_code != 404:
|
||||
log_error("The config didn't get created only for the app1.example.com service, exiting ...")
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ try:
|
|||
|
||||
log_info("Reload filter is working, trying jobs cache ...")
|
||||
|
||||
resp = get(f"http://www.example.com{UI_URL}/jobs/download?job_name=mmdb-country&file_name=country.mmdb")
|
||||
resp = get(f"http://www.example.com{UI_URL}/jobs/download?job_name=mmdb-country&file_name=country.mmdb", verify=False)
|
||||
|
||||
if resp.status_code != 200:
|
||||
log_error("The cache download is not working, exiting ...")
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ try:
|
|||
f"http://www.example.com{UI_URL}/logs/{first_instance}?from_date={int((current_date - timedelta(weeks=1)).timestamp())}&to_date={int((current_date - timedelta(days=1)).timestamp())}",
|
||||
headers={"Host": "www.example.com", "User-Agent": DRIVER.execute_script("return navigator.userAgent;")},
|
||||
cookies={"session": DRIVER.get_cookies()[0]["value"]},
|
||||
verify=False,
|
||||
)
|
||||
|
||||
if len(resp.json()["logs"]) != 0:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ try:
|
|||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[6]/a", "plugins")
|
||||
|
||||
for _ in range(5):
|
||||
get(f"http://www.example.com{UI_URL}/?id=/etc/passwd")
|
||||
get(f"http://www.example.com{UI_URL}/?id=/etc/passwd", verify=False)
|
||||
sleep(1)
|
||||
|
||||
sleep(7)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ try:
|
|||
log_info("No reports found, generating some ...")
|
||||
|
||||
for _ in range(5):
|
||||
get("http://www.example.com/?id=/etc/passwd")
|
||||
get("http://www.example.com/?id=/etc/passwd", verify=False)
|
||||
sleep(1)
|
||||
|
||||
sleep(7)
|
||||
|
|
|
|||
Loading…
Reference in a new issue