summaryrefslogtreecommitdiff
path: root/app/src/test/resources
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-03-20 16:57:31 +0100
committercyberta <cyberta@riseup.net>2021-04-22 22:53:01 +0200
commit1d2e09736a0526c574fe4c541d2f83c1ef44ccc0 (patch)
tree733e554ec5c784d6a36b581793d19a8876c50fa7 /app/src/test/resources
parent5c4960cdb37b42ac82d22288e6de946e230b4a7b (diff)
write tests for city based gateway selection
Diffstat (limited to 'app/src/test/resources')
-rw-r--r--app/src/test/resources/v4/riseup_eipservice_for_geoip_v4.json156
-rw-r--r--app/src/test/resources/v4/riseup_geoip_v4.json14
2 files changed, 166 insertions, 4 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..b8fa8bbf
--- /dev/null
+++ b/app/src/test/resources/v4/riseup_eipservice_for_geoip_v4.json
@@ -0,0 +1,156 @@
+{
+ "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":"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_v4.json b/app/src/test/resources/v4/riseup_geoip_v4.json
index 439d6ffb..c95a9e6d 100644
--- a/app/src/test/resources/v4/riseup_geoip_v4.json
+++ b/app/src/test/resources/v4/riseup_geoip_v4.json
@@ -7,8 +7,9 @@
"gateways":[
"mouette.riseup.net",
"hoatzin.riseup.net",
- "zarapito.riseup.net",
- "redshank.riseup.net"
+ "yal.riseup.net",
+ "redshank.riseup.net",
+ "zarapito.riseup.net"
],
"sortedGateways": [
{
@@ -22,8 +23,13 @@
"overload": false
},
{
- "host": "zarapito.riseup.net",
- "fullness": 0.57,
+ "host": "yal.riseup.net",
+ "fullness": 0.59,
+ "overload": false
+ },
+ {
+ "host": "redshank.riseup.net",
+ "fullness": 0.8,
"overload": false
},
{