mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-24 16:48:20 +00:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
#!/bin/bash
|
|
source tests/shakedown.sh
|
|
|
|
shakedown GET /.well-known/assetlinks.json
|
|
status 200
|
|
content_type 'application/json'
|
|
contains 'sha256_cert_fingerprints'
|
|
|
|
shakedown GET /.well-known/apple-app-site-association
|
|
status 200
|
|
content_type 'application/json'
|
|
contains 'im.status.ethereum'
|
|
|
|
shakedown GET /chat/public/abc?redirect=0
|
|
status 200
|
|
|
|
# Android test
|
|
shakedown GET /chat/public/abc -H "User-Agent: Mozilla/5.0 (Linux; Android 7.0; SM-G892A Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Mobile Safari/537.36"
|
|
header_contains 'Location' 'https://play.google.com/store/apps/details?id=im.status.ethereum'
|
|
status 302
|
|
|
|
# IOS
|
|
shakedown GET /chat/public/abc -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
|
|
header_contains 'Location' 'https://status.im/success'
|
|
status 302
|
|
|
|
# Anything else
|
|
shakedown GET /chat/public/abc -H "User-Agent: Unknown"
|
|
header_contains 'Location' 'https://status.im'
|
|
status 302
|
|
|
|
|
|
shakedown GET /user/blah?redirect=0
|
|
status 200
|
|
|
|
shakedown GET /browse/www.test.com?redirect=0
|
|
status 200
|
|
|
|
shakedown GET /health
|
|
status 200
|
|
contains 'OK'
|