Skip to content

Commit 37d79e5

Browse files
committed
Extend wireguard server tests
1 parent dc5e286 commit 37d79e5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

molecule/wireguard/tests/test_wireguard-server.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ def test_wireguard_server_conf_content(host):
4141
)
4242

4343
assert re.search(alice_peer, wg0_conf_content), "alice peer section not found or invalid format"
44+
45+
bob_peer = (
46+
r'# BEGIN peer bob\n'
47+
r'\[Peer\]\n'
48+
r'PublicKey = [A-Za-z0-9+/]{43}=\n'
49+
r'AllowedIPs = 10\.10\.0\.3/32\n'
50+
r'PreSharedKey = [A-Za-z0-9+/]{43}=\n'
51+
r'# END peer bob'
52+
)
53+
54+
assert re.search(bob_peer, wg0_conf_content), "bob peer section not found or invalid format"

0 commit comments

Comments
 (0)