test(19.5): gate the user-plugin proof tests

- TestEmailVerifiedAt and TestAdminEmailVerifiedAt required in the docker stage
- DOCKER_USER_UPDATES_TESTS runs TestEmailVerifiedAtMigration and TestCreateOrganisationsMigration
This commit is contained in:
Jakub Zych
2026-10-21 14:03:59 +02:00
parent 4895b250e1
commit 30e0cd983d

View File

@@ -33,8 +33,10 @@
# go vet ./... and go test -short ./..., and its summer.yaml
# does not mount golem15.sociallogin.
# docker Docker host only: the Postgres and Redis tests by required
# name (framework, user plugin, social login plugin), without
# -short. The application's unrelated admin route inventory
# name (framework, user plugin root and updates packages,
# social login plugin), without -short. Plan 05 adds the
# email_verified_at writers and the migration tests (D-26,
# D-27). The application's unrelated admin route inventory
# test is not part of this phase and is not run here
# (deferred-items.md).
# docs the decision note names markbates/goth and v1.82.0,
@@ -134,6 +136,15 @@ DOCKER_USER_ROOT_TESTS=(
# Plan 04: the PHP map row of OAuthPasswordBootstrapTest's
# real-password case.
TestChangePassword
# Plan 05 (D-26, D-27): the proof of the address has exactly two
# writers, follows the address and never leaves the database.
TestEmailVerifiedAt TestAdminEmailVerifiedAt
)
# docker stage: the user plugin's updates package (Postgres migrations).
DOCKER_USER_UPDATES_TESTS=(
# Plan 05 (D-27): the additive email_verified_at migration, and the
# migration history that now ends with it.
TestEmailVerifiedAtMigration TestCreateOrganisationsMigration
)
DOCKER_SOCIAL_TESTS=(
# Plan 02.
@@ -668,6 +679,7 @@ run_docker() {
go_named "$ROOT" ./modules/cooler "-timeout 10m" "${DOCKER_COOLER_TESTS[@]}"
fi
go_named "$FONOTEKA" ./plugins/golem15/user "-timeout 20m" "${DOCKER_USER_ROOT_TESTS[@]}"
go_named "$FONOTEKA" ./plugins/golem15/user/updates "-timeout 20m" "${DOCKER_USER_UPDATES_TESTS[@]}"
USER_PLUGIN="$USER_PLUGIN" go_named "$SOCIALLOGIN_PLUGIN" . "-timeout 30m" "${DOCKER_SOCIAL_TESTS[@]}"
echo "phase19.5 docker passed"
}