Migrate Gitea proxy to canonical Caddy
This commit is contained in:
1 parent
35e3e1a636
commit
d52bcc15f8
8 files changed
+87
-56
No files matched your search
@@ -97,6 +97,38 @@ REMOTE_DEPLOY="$REPO_ROOT/scripts/deploy-remote.sh"
|
||||
[ "$output" = $'gluetun\nsearxng' ]
|
||||
}
|
||||
|
||||
@test "retiring the standalone Gitea proxy deploys the canonical Caddy" {
|
||||
run python3 "$PLANNER" --target dankclaw --paths \
|
||||
dankclaw/gitea/quadlet/gitea-caddy.container
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "caddy" ]
|
||||
}
|
||||
|
||||
@test "Gitea network changes exclude the retired standalone proxy" {
|
||||
run python3 "$PLANNER" --target dankclaw --paths \
|
||||
dankclaw/gitea/quadlet/gitea.network
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = $'gitea-postgres\ngitea-server' ]
|
||||
}
|
||||
|
||||
@test "remote Caddy deployment no longer blocks on the retired Gitea proxy" {
|
||||
! grep -q 'refusing to replace it with caddy' "$REMOTE_DEPLOY"
|
||||
! grep -q 'podman container exists gitea-caddy &&' "$REMOTE_DEPLOY"
|
||||
}
|
||||
|
||||
@test "remote Caddy deployment retires the installed Gitea proxy" {
|
||||
grep -q 'retire_legacy_gitea_caddy' "$REMOTE_DEPLOY"
|
||||
grep -q 'systemctl --user stop gitea-caddy.service' "$REMOTE_DEPLOY"
|
||||
grep -q 'systemctl --user disable gitea-caddy.service' "$REMOTE_DEPLOY"
|
||||
grep -q 'gitea-caddy.container' "$REMOTE_DEPLOY"
|
||||
grep -q 'HOME/.AGENTTRASH' "$REMOTE_DEPLOY"
|
||||
}
|
||||
|
||||
@test "remote deployment inventory no longer accepts gitea-caddy as a service" {
|
||||
! grep -qE 'dankclaw:gitea-caddy|gitea-caddy\) deploy' "$REPO_ROOT/scripts/deploy.sh" "$REPO_ROOT/scripts/deploy-remote.sh"
|
||||
! grep -q '"gitea-caddy"' "$REPO_ROOT/scripts/deploy-plan.py"
|
||||
}
|
||||
|
||||
@test "remote deployer carries per-service deployment state" {
|
||||
[ -x "$REMOTE_DEPLOY" ]
|
||||
grep -q 'deploy-state' "$REMOTE_DEPLOY"
|
||||
|
||||
Reference in new issue
Block a user