From 8495d9edd450ba2dff451299d11907a9de706744 Mon Sep 17 00:00:00 2001 From: AdrianoDev Date: Sun, 5 Jul 2026 17:38:33 +0200 Subject: [PATCH] test: smoke contenuti taggati e utente editor --- scripts/smoke.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/smoke.sh b/scripts/smoke.sh index 67e9a56..ca823e6 100755 --- a/scripts/smoke.sh +++ b/scripts/smoke.sh @@ -14,4 +14,18 @@ done code=$(curl -s -o /dev/null -w '%{http_code}' http://localhost:4399/admin) echo "$code /admin (atteso 302)" [ "$code" = "302" ] || fail=1 + +# Contenuti taggati +code=$(curl -s -o /dev/null -w '%{http_code}' http://localhost:4399/sitemap.xml) +echo "$code /sitemap.xml" +[ "$code" = "200" ] || fail=1 +locs=$(curl -s http://localhost:4399/sitemap.xml | grep -c '') +echo "$locs in sitemap (atteso >= 12)" +[ "$locs" -ge 12 ] || fail=1 +tags=$(curl -s http://localhost:4399/ | grep -c 'data-tag=') +echo "$tags righe con data-tag= in home (atteso >= 1)" +[ "$tags" -ge 1 ] || fail=1 +badges=$(curl -s 'http://localhost:4399/?annotate=1' | grep -c 'tag-badge' || true) +echo "$badges tag-badge da anonimo con ?annotate=1 (atteso 0)" +[ "$badges" = "0" ] || fail=1 exit $fail