mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 09:29:13 +00:00 
			
		
		
		
	tests: Check for existence of /etc/openvpn
This commit is contained in:
		| @@ -59,11 +59,12 @@ def test_cli_setup_authority(): | ||||
|         os.unlink("/etc/certidude/client.conf") | ||||
|  | ||||
|     # Remove OpenVPN stuff | ||||
|     for filename in os.listdir("/etc/openvpn"): | ||||
|         if filename.endswith(".conf"): | ||||
|             os.unlink(os.path.join("/etc/openvpn", filename)) | ||||
|     if os.path.exists("/etc/openvpn/keys"): | ||||
|         shutil.rmtree("/etc/openvpn/keys") | ||||
|     if os.path.exists("/etc/openvpn"): | ||||
|         for filename in os.listdir("/etc/openvpn"): | ||||
|             if filename.endswith(".conf"): | ||||
|                 os.unlink(os.path.join("/etc/openvpn", filename)) | ||||
|         if os.path.exists("/etc/openvpn/keys"): | ||||
|             shutil.rmtree("/etc/openvpn/keys") | ||||
|  | ||||
|     from certidude import const | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user