summaryrefslogtreecommitdiff
path: root/src/leap/eip/tests/data.py
blob: f1d3b0bccc97db9050c59d21f268040f9a49ed56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from __future__ import unicode_literals
import os

from leap import __branding

# sample data used in tests

PROVIDER = __branding.get('provider_domain')

EIP_SAMPLE_CONFIG = {
    "provider": "%s" % PROVIDER,
    "transport": "openvpn",
    "openvpn_protocol": "tcp",
    "openvpn_port": 80,
    "openvpn_ca_certificate": os.path.expanduser(
        "~/.config/leap/providers/"
        "%s/"
        "keys/ca/testprovider-ca-cert.pem" % PROVIDER),
    "openvpn_client_certificate": os.path.expanduser(
        "~/.config/leap/providers/"
        "%s/"
        "keys/client/openvpn.pem" % PROVIDER),
    "connect_on_login": True,
    "block_cleartext_traffic": True,
    "primary_gateway": "turkey",
    "secondary_gateway": "france",
    #"management_password": "oph7Que1othahwiech6J"
}

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": "tr",
     "name": "turkey",
     "label": {"en":"Ankara, Turkey"},
     "capabilities": {},
     "hosts": ["192.0.43.10"]}
    ]
}