From 03bf695dffa2d9582e0929a36e38b5ebc22d4600 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 16 May 2026 03:07:29 -0400 Subject: [PATCH] test: add i18n to tekton pipeline Signed-off-by: Xe Iaso --- .tekton/anubis-test.yaml | 1 + test/i18n/tekton.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 test/i18n/tekton.sh diff --git a/.tekton/anubis-test.yaml b/.tekton/anubis-test.yaml index fe97ee2a..66d20196 100644 --- a/.tekton/anubis-test.yaml +++ b/.tekton/anubis-test.yaml @@ -175,6 +175,7 @@ spec: - name: test-case value: - default-config-macro + - i18n - robots_txt taskSpec: params: diff --git a/test/i18n/tekton.sh b/test/i18n/tekton.sh new file mode 100755 index 00000000..b626800b --- /dev/null +++ b/test/i18n/tekton.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -euo pipefail + +function cleanup() { + pkill -P $$ +} + +trap cleanup EXIT SIGINT + +go tool anubis --help 2>/dev/null || : + +go run ../cmd/unixhttpd & + +go tool anubis \ + --policy-fname ./anubis.yaml \ + --use-remote-address \ + --target=unix://$(pwd)/unixhttpd.sock & + +backoff-retry node ./test.mjs