summaryrefslogtreecommitdiff
path: root/src/leap/eip/constants.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-28 06:08:58 +0900
committerkali <kali@leap.se>2012-08-28 06:08:58 +0900
commitc469e396bde67db15e486a320b254de0fa6f69df (patch)
treedf725247cc48e40a109022fad32b1fc8797d576a /src/leap/eip/constants.py
parent568d52ccf33e6d7683f36f5fe2e3c32b47892216 (diff)
checki complete eip_config tests.
completed first version of EIPChecks
Diffstat (limited to 'src/leap/eip/constants.py')
-rw-r--r--src/leap/eip/constants.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/leap/eip/constants.py b/src/leap/eip/constants.py
index 7124ca57..6161d744 100644
--- a/src/leap/eip/constants.py
+++ b/src/leap/eip/constants.py
@@ -18,3 +18,31 @@ EIP_SAMPLE_JSON = {
"secondary_gateway": "france",
"management_password": "oph7Que1othahwiech6J"
}
+
+EIP_SERVICE_EXPECTED_PATH = "eip-service.json"
+
+EIP_SAMPLE_SERVICE = {
+ "serial": 1,
+ "version": "0.1.0",
+ "capabilities": {
+ "transport": ["openvpn"],
+ "ports": ["80", "53"],
+ "protocols": ["udp", "tcp"],
+ "static_ips": True,
+ "adblock": True
+ },
+ "gateways": [
+ {"country_code": "us",
+ "label": {"en":"west"},
+ "capabilities": {},
+ "hosts": ["1.2.3.4", "1.2.3.5"]},
+ {"country_code": "us",
+ "label": {"en":"east"},
+ "capabilities": {},
+ "hosts": ["1.2.3.4", "1.2.3.5"]},
+ {"country_code": "fr",
+ "label": {},
+ "capabilities": {},
+ "hosts": ["1.2.3.4", "1.2.3.5"]}
+ ]
+}