diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-11-22 20:50:56 -0600 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-12-12 13:37:38 +0100 |
commit | d8e683ef0b15e00bba9c241181e7d3247d30539c (patch) | |
tree | 5ccb04c333c6a9d6d26dfd340d23b7d6ebf83cac /standalone/testdata/eip-service.json | |
parent | d7a1eecfd9d40c7c114f9ecab8180e00107766ec (diff) |
[test] make bonafide more testable
Get local timezone and http client as configurable things in bonafide,
so tests can set them. Also separate integration tests and unit tests.
Diffstat (limited to 'standalone/testdata/eip-service.json')
-rw-r--r-- | standalone/testdata/eip-service.json | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/standalone/testdata/eip-service.json b/standalone/testdata/eip-service.json new file mode 100644 index 0000000..d5f2413 --- /dev/null +++ b/standalone/testdata/eip-service.json @@ -0,0 +1,113 @@ +{ + "gateways": [ + { + "capabilities": { + "adblock": false, + "filter_dns": false, + "limited": false, + "ports": [ + "443" + ], + "protocols": [ + "tcp" + ], + "transport": [ + "openvpn" + ], + "user_ips": false + }, + "host": "1.example.com", + "ip_address": "1.1.1.1", + "location": "a" + }, + { + "capabilities": { + "adblock": false, + "filter_dns": false, + "limited": false, + "ports": [ + "443" + ], + "protocols": [ + "tcp" + ], + "transport": [ + "openvpn" + ], + "user_ips": false + }, + "host": "2.example.com", + "ip_address": "2.2.2.2", + "location": "b" + }, + { + "capabilities": { + "adblock": false, + "filter_dns": false, + "limited": false, + "ports": [ + "443" + ], + "protocols": [ + "tcp" + ], + "transport": [ + "openvpn" + ], + "user_ips": false + }, + "host": "3.example.com", + "ip_address": "3.3.3.3", + "location": "b" + }, + { + "capabilities": { + "adblock": false, + "filter_dns": false, + "limited": false, + "ports": [ + "443" + ], + "protocols": [ + "tcp" + ], + "transport": [ + "openvpn" + ], + "user_ips": false + }, + "host": "4.example.com", + "ip_address": "4.4.4.4", + "location": "c" + } + ], + "locations": { + "a": { + "country_code": "AA", + "hemisphere": "N", + "name": "a", + "timezone": "-5" + }, + "b": { + "country_code": "BB", + "hemisphere": "S", + "name": "b", + "timezone": "+1" + }, + "c": { + "country_code": "CC", + "hemisphere": "N", + "name": "c", + "timezone": "+8" + } + }, + "openvpn_configuration": { + "auth": "SHA1", + "cipher": "AES-128-CBC", + "keepalive": "10 30", + "tls-cipher": "DHE-RSA-AES128-SHA", + "tun-ipv6": true + }, + "serial": 1, + "version": 1 +} |