Archived
1.0.2 - fix network settings, permissions and branding
Wydanie WGTools-Extended / release (push) Successful in 14s
Wydanie WGTools-Extended / release (push) Successful in 14s
This commit is contained in:
1 parent
9c23169339
commit
aadc19341d
18 files changed
+241
-80
No files matched your search
@@ -70,6 +70,16 @@ def test_server_editor_preserves_extended_firewall_hooks(network):
|
||||
assert m['_managed_hook_kind'](command, 'wg1', {}, set()) is None
|
||||
|
||||
|
||||
def test_network_sources_allow_addresses_and_interfaces(network):
|
||||
m, _ = network
|
||||
groups = m['_prepare_network_sources']('wg1', '192.0.2.10, eth0')
|
||||
assert groups['_wgext_network_wg1']['sources'] == ['192.0.2.10', 'eth0']
|
||||
assert m['_extended_allowed'](groups, 'wg1') == {'192.0.2.10', '192.0.2.20'}
|
||||
assert m['_extended_allowed'](groups, 'wg2') == set()
|
||||
with pytest.raises(ValueError, match='nie ma przypisanego IPv4'):
|
||||
m['_prepare_network_sources']('wg1', '192.0.2.99')
|
||||
|
||||
|
||||
def test_migration_backup_includes_address_groups(network, tmp_path, monkeypatch):
|
||||
m, _ = network
|
||||
gl = m['_build_migration_archive'].__globals__
|
||||
|
||||
Reference in new issue
Block a user