mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-27 07:06:03 +01:00
Add API v2 endpoints to manage cluster workers and the primary WireGuard
This commit is contained in:
+3
-1
@@ -766,7 +766,9 @@ class PrimaryDisabledTests(ClusterTestMixin, TestCase):
|
||||
return type('Result', (), {'returncode': 0, 'stdout': 'wg0 wg1\n', 'stderr': ''})()
|
||||
|
||||
with patch('wireguard_tools.views.subprocess.run', run), \
|
||||
patch('wireguard_tools.views.os.path.isfile', lambda path: path.endswith('/wg0.conf')):
|
||||
patch('wireguard_tools.functions.subprocess.run', run), \
|
||||
patch('wireguard_tools.views.os.path.isfile', lambda path: path.endswith('/wg0.conf')), \
|
||||
patch('wireguard_tools.functions.os.path.isfile', lambda path: path.endswith('/wg0.conf')):
|
||||
self.client.get('/tools/restart_wireguard/?action=dismiss_warning')
|
||||
|
||||
self.assertIn(['wg-quick', 'down', 'wg0'], commands)
|
||||
|
||||
Reference in New Issue
Block a user