Skip to content

Commit

Permalink
Fix tests, attempt to fix fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Apr 3, 2024
1 parent a64199d commit c706ec2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
24 changes: 12 additions & 12 deletions roles/fail2ban/templates/jail.local.j2
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[DEFAULT]
banaction = iptables-allports
bantime = -1
findtime = 600
maxretry = 5
ignoreip = 127.0.0.1/8 ::1
action = %(action_mwl)s
destemail = {{ email }}
sender = {{ email }}
banaction=iptables-allports
bantime=-1
findtime=600
maxretry=5
ignoreip=127.0.0.1/8 ::1
action=%(action_mwl)s
destemail={{ email }}
sender={{ email }}

[sshd]
backend = systemd
enabled = true
port = {{ ssh_port }}
filter = sshd
backend=systemd
enabled=true
port={{ ssh_port }}
filter=sshd
5 changes: 3 additions & 2 deletions testing/selenium/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,16 @@ def download_wg_config(driver, base_url, client, secret):

sleep(1)

# Sometimes Authelia does not accept the TOTP code the first time...
actions = ActionChains(driver)
actions.send_keys(totp.now())
actions.perform()

sleep(2)
sleep(1)

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

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 c706ec2

Please sign in to comment.