summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/data.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-25 05:48:06 +0900
committerkali <kali@leap.se>2012-10-02 05:27:15 +0900
commitabf481cab381a86d8a9c5607a131b56636081382 (patch)
tree813ef6de78207cde08da6afa5f73e5d52af1e385 /src/leap/eip/tests/data.py
parent5d8e518d03e9fd045a75a63fec79b52392266c26 (diff)
refactored jsonconfig, included jsonschema validation
and type casting.
Diffstat (limited to 'src/leap/eip/tests/data.py')
-rw-r--r--src/leap/eip/tests/data.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/leap/eip/tests/data.py b/src/leap/eip/tests/data.py
index 4da0e18f..43df2013 100644
--- a/src/leap/eip/tests/data.py
+++ b/src/leap/eip/tests/data.py
@@ -7,7 +7,7 @@ from leap import __branding
PROVIDER = __branding.get('provider_domain')
-EIP_SAMPLE_JSON = {
+EIP_SAMPLE_CONFIG = {
"provider": "%s" % PROVIDER,
"transport": "openvpn",
"openvpn_protocol": "tcp",
@@ -22,7 +22,7 @@ EIP_SAMPLE_JSON = {
"keys/client/openvpn.pem" % PROVIDER),
"connect_on_login": True,
"block_cleartext_traffic": True,
- "primary_gateway": "usa_west",
+ "primary_gateway": "turkey",
"secondary_gateway": "france",
#"management_password": "oph7Que1othahwiech6J"
}
@@ -38,9 +38,10 @@ EIP_SAMPLE_SERVICE = {
"adblock": True
},
"gateways": [
- {"country_code": "us",
- "label": {"en":"west"},
+ {"country_code": "tr",
+ "name": "turkey",
+ "label": {"en":"Ankara, Turkey"},
"capabilities": {},
- "hosts": ["1.2.3.4", "1.2.3.5"]},
+ "hosts": ["94.103.43.4"]}
]
}