feature: the VPN, the router, the name server and WebDAV are components switched on the System tab and installed on demand, Caddy from the Ubuntu archive is a dependency and serves every HTTP and HTTPS port, HTTPS is chosen at install, its certificate is of the Servers Issuing CA or self-signed by default, of ACME or of another CA, the issuing CAs are in one tab, a locked account is unlocked again, the name of a CA is fixed once the CA exists, and a run of setup is no longer cut short by a change.
Release / release (push) Failing after 8s
Release / release (push) Failing after 8s
This commit is contained in:
1 parent
a649331aa2
commit
a7bfabcb89
97 files changed
+4498
-1834
No files matched your search
@@ -19,13 +19,15 @@ def run(lab):
|
||||
'lm-core', 'cat', '/etc/ufw/before.rules')
|
||||
for unit in ('strongswan', 'wg-quick@wg0', 'openvpn-server@linux-manager', 'linux-manager-resolver'):
|
||||
lab.refuse(f'core: {unit} inactive', r'^active', 'lm-core', 'systemctl', 'is-active', unit)
|
||||
lab.refuse('core: no VPN or router package installed', r'(?m)^installed$', 'lm-core', 'sh', '-c',
|
||||
"dpkg-query -W -f='${db:Status-Status}\\n' strongswan-swanctl openvpn 2>/dev/null")
|
||||
lab.expect('core: schema under the PEN arc', r"1\.3\.6\.1\.4\.1\.67380\.10\.1\.2\.2\.1 NAME 'linuxManagerAccount'",
|
||||
'lm-core', 'slapcat', '-n', '0', '-o', 'ldif-wrap=no')
|
||||
lab.expect('core: base DN dc=linux-manager,dc=local', r'^dn: dc=linux-manager,dc=local$',
|
||||
'lm-core', 'slapcat', '-b', 'dc=linux-manager,dc=local', '-o', 'ldif-wrap=no')
|
||||
status = lab.json_of('lm-core', 'linux-manager-ca', '--json', 'status') or {}
|
||||
states = {authority.get('name'): authority.get('state') for authority in status.get('authorities', [])}
|
||||
lab.result('core: p2s and s2s CAs missing', states.get('p2s') == 'missing' and states.get('s2s') == 'missing')
|
||||
lab.result('core: p2s and s2s CAs off', states.get('p2s') == 'off' and states.get('s2s') == 'off')
|
||||
lab.result('core: VPN user added', lab.vpn_user('lm-core'))
|
||||
user = lab.alice('lm-core')
|
||||
lab.result('core: VPN user has no certificate', user is not None and not user.get('certificate'))
|
||||
|
||||
Reference in new issue
Block a user