summaryrefslogtreecommitdiff
path: root/app/src/test/resources
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2021-05-18 16:13:44 +0000
committercyberta <cyberta@riseup.net>2021-05-18 16:13:44 +0000
commit15490dae1ac8670d1288367cb2ac8fd43c48a045 (patch)
tree7ee5ae99b504c5a737471f6d1d9ee331008dfc20 /app/src/test/resources
parent48bd56b48c96cc62557675a82ac0ca1865f9aa8e (diff)
parent4b8ea1252cddfd54278676a8b2f64eb937f92c2d (diff)
Merge branch 'gateway_selector' into 'master'
Gateway selector See merge request leap/bitmask_android!132
Diffstat (limited to 'app/src/test/resources')
-rw-r--r--app/src/test/resources/v4/riseup_eipservice_for_geoip_v4.json169
-rw-r--r--app/src/test/resources/v4/riseup_geoip_v1.json14
-rw-r--r--app/src/test/resources/v4/riseup_geoip_v4.json41
3 files changed, 224 insertions, 0 deletions
diff --git a/app/src/test/resources/v4/riseup_eipservice_for_geoip_v4.json b/app/src/test/resources/v4/riseup_eipservice_for_geoip_v4.json
new file mode 100644
index 00000000..76fbea52
--- /dev/null
+++ b/app/src/test/resources/v4/riseup_eipservice_for_geoip_v4.json
@@ -0,0 +1,169 @@
+{
+ "gateways": [
+ {
+ "capabilities": {
+ "adblock": false,
+ "filter_dns": false,
+ "limited": false,
+ "transport":[
+ {
+ "type":"openvpn",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "443"
+ ]
+ }
+ ],
+ "user_ips": false
+ },
+ "host": "zarapito.riseup.net",
+ "ip_address": "212.129.62.247",
+ "location": "paris"
+ },
+ {
+ "capabilities": {
+ "adblock": false,
+ "filter_dns": false,
+ "limited": false,
+ "transport":[
+ {
+ "type":"obfs4",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "23042"
+ ],
+ "options": {
+ "cert": "48F/JNm/LKYt7zkDmPHXcw5f3Jqgwg/3OBRrqW14Yj87ATZ4KyAZRV7np4RhCXGSJHgoCQ",
+ "iatMode": "0"
+ }
+ },
+ {
+ "type":"openvpn",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "443"
+ ]
+ }
+ ],
+ "user_ips": false
+ },
+ "host": "hoatzin.riseup.net",
+ "ip_address": "212.83.143.67",
+ "location": "paris"
+ },
+ {
+ "capabilities": {
+ "adblock": false,
+ "filter_dns": false,
+ "limited": false,
+ "transport":[
+ {
+ "type":"openvpn",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "443"
+ ]
+ }
+ ],
+ "user_ips": false
+ },
+ "host": "mouette.riseup.net",
+ "ip_address": "163.172.126.44",
+ "location": "paris"
+ },
+ {
+ "capabilities": {
+ "adblock": false,
+ "filter_dns": false,
+ "limited": false,
+ "transport":[
+ {
+ "type":"openvpn",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "443"
+ ]
+ }
+ ],
+ "user_ips": false
+ },
+ "host": "redshank.riseup.net",
+ "ip_address": "212.83.165.160",
+ "location": "amsterdam"
+ },
+ {
+ "capabilities": {
+ "adblock": false,
+ "filter_dns": false,
+ "limited": false,
+ "transport":[
+ {
+ "type":"obfs4",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "23042"
+ ],
+ "options": {
+ "cert": "48F/JNm/LKYt7zkDmPHXcw5f3Jqgwg/3OBRrqW14Yj87ATZ4KyAZRV7np4RhCXGSJHgoCQ",
+ "iatMode": "0"
+ }
+ },
+ {
+ "type":"openvpn",
+ "protocols":[
+ "tcp"
+ ],
+ "ports":[
+ "443"
+ ]
+ }
+ ],
+ "user_ips": false
+ },
+ "host": "yal.riseup.net",
+ "ip_address": "199.58.83.10",
+ "location": "montreal"
+ }
+ ],
+ "locations": {
+ "amsterdam": {
+ "country_code": "NL",
+ "hemisphere": "N",
+ "name": "Amsterdam",
+ "timezone": "+2"
+ },
+ "montreal": {
+ "country_code": "CA",
+ "hemisphere": "N",
+ "name": "Montreal",
+ "timezone": "-5"
+ },
+ "paris": {
+ "country_code": "FR",
+ "hemisphere": "N",
+ "name": "Paris",
+ "timezone": "+2"
+ }
+ },
+ "openvpn_configuration": {
+ "auth": "SHA1",
+ "cipher": "AES-128-CBC",
+ "keepalive": "10 30",
+ "tls-cipher": "DHE-RSA-AES128-SHA",
+ "tun-ipv6": true
+ },
+ "serial": 3,
+ "version": 3
+}
diff --git a/app/src/test/resources/v4/riseup_geoip_v1.json b/app/src/test/resources/v4/riseup_geoip_v1.json
new file mode 100644
index 00000000..4e3bda2a
--- /dev/null
+++ b/app/src/test/resources/v4/riseup_geoip_v1.json
@@ -0,0 +1,14 @@
+{
+ "ip":"51.158.144.32",
+ "cc":"FR",
+ "city":"Paris",
+ "lat":48.8628,
+ "lon":2.3292,
+ "gateways":[
+ "mouette.riseup.net",
+ "hoatzin.riseup.net",
+ "yal.riseup.net",
+ "redshank.riseup.net",
+ "zarapito.riseup.net"
+ ]
+} \ No newline at end of file
diff --git a/app/src/test/resources/v4/riseup_geoip_v4.json b/app/src/test/resources/v4/riseup_geoip_v4.json
new file mode 100644
index 00000000..c95a9e6d
--- /dev/null
+++ b/app/src/test/resources/v4/riseup_geoip_v4.json
@@ -0,0 +1,41 @@
+{
+ "ip":"51.158.144.32",
+ "cc":"FR",
+ "city":"Paris",
+ "lat":48.8628,
+ "lon":2.3292,
+ "gateways":[
+ "mouette.riseup.net",
+ "hoatzin.riseup.net",
+ "yal.riseup.net",
+ "redshank.riseup.net",
+ "zarapito.riseup.net"
+ ],
+ "sortedGateways": [
+ {
+ "host": "mouette.riseup.net",
+ "fullness": 0.3,
+ "overload": false
+ },
+ {
+ "host": "hoatzin.riseup.net",
+ "fullness": 0.36,
+ "overload": false
+ },
+ {
+ "host": "yal.riseup.net",
+ "fullness": 0.59,
+ "overload": false
+ },
+ {
+ "host": "redshank.riseup.net",
+ "fullness": 0.8,
+ "overload": false
+ },
+ {
+ "host": "zarapito.riseup.net",
+ "fullness": 0.92,
+ "overload": true
+ }
+ ]
+} \ No newline at end of file