ci: smoke test checks the addresses of both languages
Since the German version the legal pages live at /impressum and /datenschutz and under /en/imprint and /en/privacy. The smoke test still expected /imprint and /privacy to answer 200 and /impressum to redirect, so it has been red on every deploy while the site was fine. A check that is always red no longer shows a real outage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -477,8 +477,8 @@ jobs:
|
||||
run: |
|
||||
BASE_URL="${{ needs.prepare.outputs.next_public_url }}"
|
||||
|
||||
# The legal pages must be reachable.
|
||||
for PAGE in /imprint /privacy; do
|
||||
# The legal pages must be reachable in both languages.
|
||||
for PAGE in /impressum /datenschutz /en/imprint /en/privacy; do
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$BASE_URL$PAGE")
|
||||
if [ "$STATUS" != "200" ]; then
|
||||
echo "❌ $PAGE failed! (Status: $STATUS)"
|
||||
@@ -488,7 +488,7 @@ jobs:
|
||||
done
|
||||
|
||||
# URLs of the previous site must redirect instead of returning 404.
|
||||
for OLD in /blog /contact /websites /case-studies/klz-cables /impressum; do
|
||||
for OLD in /blog /contact /websites /case-studies/klz-cables; do
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$BASE_URL$OLD")
|
||||
if [ "$STATUS" != "308" ]; then
|
||||
echo "❌ $OLD does not redirect! (Status: $STATUS)"
|
||||
|
||||
Reference in New Issue
Block a user