From f2d598f6460556fd408397b93048816dbe7a1482 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 16 Jun 2020 12:59:00 +0300 Subject: [PATCH] Add a few more static profiles --- Tests/OpenVPNAdapter/VPNProfile.swift | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Tests/OpenVPNAdapter/VPNProfile.swift b/Tests/OpenVPNAdapter/VPNProfile.swift index 49645ca..1383fcc 100644 --- a/Tests/OpenVPNAdapter/VPNProfile.swift +++ b/Tests/OpenVPNAdapter/VPNProfile.swift @@ -18,6 +18,18 @@ struct VPNProfile { } extension VPNProfile { + /// + static let general: VPNProfile = { + let configuration: String = <#OPENVPN_CONFIGURATION#> + + let username: String? = <#OPENVPN_USERNAME#> + let password: String? = <#OPENVPN_PASSWORD#> + + let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#> + + return VPNProfile(configuration: configuration, username: username, password: password, settings: settings) + }() + /// static let caOnly: VPNProfile = { let configuration: String = <#OPENVPN_CONFIGURATION#> @@ -26,7 +38,7 @@ extension VPNProfile { let password: String? = <#OPENVPN_PASSWORD#> let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#> - + return VPNProfile(configuration: configuration, username: username, password: password, settings: settings) }() @@ -41,4 +53,16 @@ extension VPNProfile { return VPNProfile(configuration: configuration, username: username, password: password, settings: settings) }() + + /// + static let withoutCredentials: VPNProfile = { + let configuration: String = <#OPENVPN_CONFIGURATION#> + + let username: String? = <#OPENVPN_USERNAME#> + let password: String? = <#OPENVPN_PASSWORD#> + + let settings: [String: String]? = <#OPENVPN_ADDITIONAL_SETTINGS#> + + return VPNProfile(configuration: configuration, username: username, password: password, settings: settings) + }() }