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