ActivityPub integration test (#4761)

* feat(test): add an end-to-end ActivityPub integration test

* chore(ci): run AP integration test under CI

* feat(test): use caddy instead of home built reverse proxy

* fix(test): fix linter warnings

* chore(test): don't commit test self-signed certs I suppose

* chore(test): more shellcheck linter warnings

* fix: fix test setup under CI
This commit is contained in:
Gabe Kangas
2026-01-21 22:33:55 -08:00
committed by GitHub
parent 23ce430e5b
commit b0fc8260d9
7 changed files with 1129 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
# Caddyfile for ActivityPub federation testing
# Routes requests to owncast.local and snac.local to their respective backends
{
# Disable automatic HTTPS since we use mkcert certificates
auto_https off
# Disable admin API
admin off
# Suppress logging
log {
level error
}
}
# HTTPS listener using mkcert certificates
https://:{$PROXY_PORT} {
tls {$CERT_FILE} {$KEY_FILE}
# Route based on Host header
@owncast host owncast.local
@snac host snac.local
handle @owncast {
reverse_proxy localhost:{$OWNCAST_PORT}
}
handle @snac {
reverse_proxy localhost:{$SNAC_PORT}
}
# Default: return error for unknown hosts
handle {
respond "Unknown host" 404
}
}