diff options
author | kali <kali@leap.se> | 2012-09-20 02:40:56 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-20 02:40:56 +0900 |
commit | 50396fca082652dd1a1617e0d029c1c726e4c651 (patch) | |
tree | ee7a91c49034c95493957550c94164c06ecbea30 /src/leap/eip/tests/data.py | |
parent | cfb7f5a2e9bae74dd60067a399a222d62e81da2c (diff) | |
parent | ecd8696e6e009826523b62a508cdf2202eaa2411 (diff) |
Merge branch 'feature/branding' into develop
Closes #553
Diffstat (limited to 'src/leap/eip/tests/data.py')
-rw-r--r-- | src/leap/eip/tests/data.py | 14 |
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", |