mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 08:15:18 +00:00
tests: Attempt to install NetworkManager
This commit is contained in:
parent
47d518e250
commit
68f6b9f6f6
@ -21,7 +21,7 @@ script:
|
||||
- sudo useradd adminbot -G sudo -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
||||
- sudo useradd userbot -G users -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
||||
- sudo chmod 777 . # Allow forked processes to write .coverage files
|
||||
- sudo mkdir /etc/NetworkManager/system-connections/ # Allow config file creation without having NM installed
|
||||
- sudo mkdir -p /etc/NetworkManager/system-connections/ # Allow config file creation without having NM installed
|
||||
- sudo coverage run --parallel-mode --source certidude -m py.test tests
|
||||
- sudo coverage combine
|
||||
- sudo coverage report
|
||||
|
@ -657,12 +657,11 @@ def certidude_setup_strongswan_client(authority, remote, common_name, **paths):
|
||||
@setup_client()
|
||||
def certidude_setup_strongswan_networkmanager(authority, remote, common_name, **paths):
|
||||
# Install dependencies
|
||||
apt("strongswan-nm")
|
||||
rpm("NetworkManager-strongswan-gnome")
|
||||
|
||||
endpoint = "IPSec to %s" % remote
|
||||
apt("network-manager strongswan-nm")
|
||||
rpm("NetworkManager NetworkManager-tui NetworkManager-strongswan-gnome")
|
||||
|
||||
# Create corresponding section in /etc/certidude/services.conf
|
||||
endpoint = "IPSec to %s" % remote
|
||||
service_config = ConfigParser()
|
||||
if os.path.exists(const.SERVICES_CONFIG_PATH):
|
||||
service_config.readfp(open(const.SERVICES_CONFIG_PATH))
|
||||
@ -685,6 +684,9 @@ def certidude_setup_strongswan_networkmanager(authority, remote, common_name, **
|
||||
@click.option("--common-name", "-cn", default=const.HOSTNAME, help="Common name, %s by default" % const.HOSTNAME)
|
||||
@setup_client()
|
||||
def certidude_setup_openvpn_networkmanager(authority, remote, common_name, **paths):
|
||||
apt("network-manager network-manager-openvpn-gnome")
|
||||
rpm("NetworkManager NetworkManager-tui NetworkManager-openvpn-gnome")
|
||||
|
||||
# Create corresponding section in /etc/certidude/services.conf
|
||||
endpoint = "OpenVPN to %s" % remote
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user