Skip to content

Commit

Permalink
Modify healthcheck for bunkerweb, fix testing script
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Apr 3, 2024
1 parent f89c291 commit a64199d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/bunkerweb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
name: "bunkerweb"
image: "bunkerity/bunkerweb:{{ bunkerweb_version }}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
test: ["CMD", "curl", "-f", "http://localhost:80"]
start_period: 10s
networks:
- name: wg_network
Expand Down
6 changes: 5 additions & 1 deletion testing/selenium/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ def download_wg_config(driver, base_url, client, secret):
actions.send_keys(totp.now())
actions.perform()

sleep(1)
sleep(2)

logger.debug(f"Opening wg.{base_url} in the browser")
driver.get(f"https://wg.{base_url}")
sleep(2)

logger.debug("Clicking on the 'New Client' button")
new_client_button = driver.find_element("xpath", "//*[contains(text(), 'New Client')]")
Expand Down

0 comments on commit a64199d

Please sign in to comment.