summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/data.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-20 02:29:19 +0900
committerkali <kali@leap.se>2012-09-20 02:40:41 +0900
commitecd8696e6e009826523b62a508cdf2202eaa2411 (patch)
tree22044157cab43d1ac31b95ab4b7710b3f7fc14a1 /src/leap/eip/tests/data.py
parent6a9523b0e83aca75bbfde5a8939ee612c5a78f9a (diff)
tests pass after branding changes
Diffstat (limited to 'src/leap/eip/tests/data.py')
-rw-r--r--src/leap/eip/tests/data.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/leap/eip/tests/data.py b/src/leap/eip/tests/data.py
index 284b398f..4da0e18f 100644
--- a/src/leap/eip/tests/data.py
+++ b/src/leap/eip/tests/data.py
@@ -1,21 +1,25 @@
from __future__ import unicode_literals
import os
+from leap import __branding
+
# sample data used in tests
+PROVIDER = __branding.get('provider_domain')
+
EIP_SAMPLE_JSON = {
- "provider": "testprovider.example.org",
+ "provider": "%s" % PROVIDER,
"transport": "openvpn",
"openvpn_protocol": "tcp",
"openvpn_port": 80,
"openvpn_ca_certificate": os.path.expanduser(
"~/.config/leap/providers/"
- "testprovider.example.org/"
- "keys/ca/testprovider-ca-cert.pem"),
+ "%s/"
+ "keys/ca/testprovider-ca-cert.pem" % PROVIDER),
"openvpn_client_certificate": os.path.expanduser(
"~/.config/leap/providers/"
- "testprovider.example.org/"
- "keys/client/openvpn.pem"),
+ "%s/"
+ "keys/client/openvpn.pem" % PROVIDER),
"connect_on_login": True,
"block_cleartext_traffic": True,
"primary_gateway": "usa_west",