forked from sdepold/feedrapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-local.sh
executable file
·35 lines (30 loc) · 1.14 KB
/
test-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
if curl -Ls "http://localhost" | grep -q "Introduction"; then
echo "Feedr Website: Works"
else
echo "Feedr Website: Unavailable"
fi
if curl -Ls "http://localhost/hosting" | grep -q "Hosting"; then
echo "Feedr Website (Hosting): Works"
else
echo "Feedr Website (Hosting): Unavailable"
fi
if curl -Ls "http://localhost/?q=https://bitte.kaufen/magazin/feed/" | grep -q "bitte.kaufen Magazin für Eltern"; then
echo "Feedr API (forwarding): Works"
else
echo "Feedr API (forwarding): Unavailable"
fi
if curl -Ls "http://localhost/api/?q=https://bitte.kaufen/magazin/feed/" | grep -q "bitte.kaufen Magazin für Eltern"; then
echo "Feedr API: Works"
else
echo "Feedr API: Unavailable"
fi
if curl -Ls "http://localhost/api?q=https://bitte.kaufen/magazin/feed/" | grep -q "bitte.kaufen Magazin für Eltern"; then
echo "Feedr API (no trailing slash): Works"
else
echo "Feedr API (no trailing slash): Unavailable"
fi
if curl -Ls "http://localhost/api?callback=foo&q=https://bitte.kaufen/magazin/feed/" | grep -q 'foo({"responseStatus":200'; then
echo "Feedr API (callback): Works"
else
echo "Feedr API (callback): Unavailable"
fi