Skip to content

Commit

Permalink
Add prod test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepold committed Sep 11, 2023
1 parent 77bf6b8 commit f9b7abc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ops/test-live.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
if curl -Ls "https://feedrapp.info" | grep -q "Introduction"; then
echo "Feedr Website: Works"
else
echo "Feedr Website: Unavailable"
fi

if curl -Ls "https://feedrapp.info/hosting" | grep -q "Hosting"; then
echo "Feedr Website (Hosting): Works"
else
echo "Feedr Website (Hosting): Unavailable"
fi

if curl -Ls "https://feedrapp.info/?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 "https://feedrapp.info/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 "https://feedrapp.info/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 "https://feedrapp.info/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

0 comments on commit f9b7abc

Please sign in to comment.