summaryrefslogtreecommitdiff
path: root/app/src/test/resources
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-03-15 23:51:51 +0100
committercyberta <cyberta@riseup.net>2021-04-22 22:53:01 +0200
commita5a3dd31e53b772ccdddd6aaa6125968a894054c (patch)
tree7ac66ccab1d75752d40076c53ecbfaff9ebd3a7c /app/src/test/resources
parent48bd56b48c96cc62557675a82ac0ca1865f9aa8e (diff)
add an example menshen response, containing a host's load rate
Diffstat (limited to 'app/src/test/resources')
-rw-r--r--app/src/test/resources/riseup_geoip_v4.json35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/src/test/resources/riseup_geoip_v4.json b/app/src/test/resources/riseup_geoip_v4.json
new file mode 100644
index 00000000..439d6ffb
--- /dev/null
+++ b/app/src/test/resources/riseup_geoip_v4.json
@@ -0,0 +1,35 @@
+{
+ "ip":"51.158.144.32",
+ "cc":"FR",
+ "city":"Paris",
+ "lat":48.8628,
+ "lon":2.3292,
+ "gateways":[
+ "mouette.riseup.net",
+ "hoatzin.riseup.net",
+ "zarapito.riseup.net",
+ "redshank.riseup.net"
+ ],
+ "sortedGateways": [
+ {
+ "host": "mouette.riseup.net",
+ "fullness": 0.3,
+ "overload": false
+ },
+ {
+ "host": "hoatzin.riseup.net",
+ "fullness": 0.36,
+ "overload": false
+ },
+ {
+ "host": "zarapito.riseup.net",
+ "fullness": 0.57,
+ "overload": false
+ },
+ {
+ "host": "zarapito.riseup.net",
+ "fullness": 0.92,
+ "overload": true
+ }
+ ]
+} \ No newline at end of file