Pipeline test site
Click each link and check that it does what it says. Header cases need the
browser's network tab. check.sh runs all of these from the
command line.
Build
-
/ — This page exists only if Hugo ran; the repository has no built files.
Expect status 200, showing “Pipeline test site”.
-
/build/ — Build environment variables reach the build.
Expect status 200, showing “Built by statichost”.
-
/does-not-exist/ — A missing page shows the site's own 404.html.
Expect status 404, showing “Not found”.
Redirects
-
/redirect/default/ — A redirect without a status code is temporary.
Expect status 302, redirecting to /target/.
-
/redirect/301/ — Moved Permanently.
Expect status 301, redirecting to /target/.
-
/redirect/303/ — See Other.
Expect status 303, redirecting to /target/.
-
/redirect/307/ — Temporary Redirect.
Expect status 307, redirecting to /target/.
-
/redirect/308/ — Permanent Redirect.
Expect status 308, redirecting to /target/.
-
/redirect/external/ — A redirect can lead to another domain.
Expect status 302, redirecting to https://www.statichost.eu/.
-
/old/some/page/ — A wildcard carries the matched part over with :splat.
Expect status 301, redirecting to /new/some/page/.
-
/shadowed/ — A page that exists is served even though a redirect matches it.
Expect status 200, showing “Shadowed page”.
-
/forced/ — A forced redirect (301!) wins over a page that exists.
Expect status 301, redirecting to /target/.
Rewrites
-
/rewrite/ — A 200 rewrite serves another page; the address stays the same.
Expect status 200, showing “Target page”.
-
/spa/any/client/route — A single-page app's catch-all serves its shell for every route.
Expect status 200, showing “SPA shell”.
-
/section/missing/ — A section has its own 404 page through a 404 rewrite.
Expect status 404, showing “Section not found”.
-
/removed/ — A 410 rewrite answers Gone with a page.
Expect status 410, showing “Gone”.
-
/proxy/ — A 200 rewrite to another domain proxies it (example.com).
Expect status 200, showing “Example Domain”.
Headers
-
/ — A header set for * applies site-wide.
Expect status 200, with header X-Pipeline-Test: site-wide.
-
/headers/exact/ — An exact path match overrides the site-wide value; the last match wins.
Expect status 200, with header X-Pipeline-Test: exact.
-
/headers/wild/page/ — A wildcard path match.
Expect status 200, with header X-Wildcard: matched.
-
/headers/file.txt — A regular expression path match.
Expect status 200, with header X-Regex: matched.