test(19.4-04): gate requires the sm-user-plugin additions' tests
TestEndRequestSession joins the userplugin stage; TestRequestUser, TestAvatarURL and TestDeactivatingEvent the docker stage. --all is green on a Docker host (parity NOT RUN, deferred).
This commit is contained in:
@@ -103,8 +103,7 @@ PLUGIN_TESTS=(
|
|||||||
|
|
||||||
# userplugin stage: the user plugin's Docker-free suites (-short), by
|
# userplugin stage: the user plugin's Docker-free suites (-short), by
|
||||||
# package pattern relative to the application workspace.
|
# package pattern relative to the application workspace.
|
||||||
USER_CLASSES_TESTS=()
|
USER_ROOT_TESTS=(TestEndRequestSession)
|
||||||
USER_ROOT_TESTS=()
|
|
||||||
|
|
||||||
# fonoteka stage: the application's Docker-free OAuth suites (-short).
|
# fonoteka stage: the application's Docker-free OAuth suites (-short).
|
||||||
APP_OAUTH_TESTS=(
|
APP_OAUTH_TESTS=(
|
||||||
@@ -133,8 +132,7 @@ DOCKER_PLUGIN_TESTS=(
|
|||||||
TestKeyRingMultiInstanceRace TestKeyRingPreviousAppKey TestMCPStore
|
TestKeyRingMultiInstanceRace TestKeyRingPreviousAppKey TestMCPStore
|
||||||
TestImportWinter TestImportKeyDirErrors TestRotateKeysCommand
|
TestImportWinter TestImportKeyDirErrors TestRotateKeysCommand
|
||||||
)
|
)
|
||||||
DOCKER_USER_CLASSES_TESTS=()
|
DOCKER_USER_ROOT_TESTS=(TestRequestUser TestAvatarURL TestDeactivatingEvent)
|
||||||
DOCKER_USER_ROOT_TESTS=()
|
|
||||||
# The application's OAuth suites on Postgres (D-09), the explicit resource
|
# The application's OAuth suites on Postgres (D-09), the explicit resource
|
||||||
# of plan 01 included.
|
# of plan 01 included.
|
||||||
DOCKER_APP_OAUTH_TESTS=(
|
DOCKER_APP_OAUTH_TESTS=(
|
||||||
@@ -439,12 +437,7 @@ run_userplugin() {
|
|||||||
require_dir "$FONOTEKA" "application workspace"
|
require_dir "$FONOTEKA" "application workspace"
|
||||||
go_vet "$FONOTEKA" ./plugins/golem15/user/...
|
go_vet "$FONOTEKA" ./plugins/golem15/user/...
|
||||||
go_short "$FONOTEKA" ./plugins/golem15/user/...
|
go_short "$FONOTEKA" ./plugins/golem15/user/...
|
||||||
if ((${#USER_CLASSES_TESTS[@]})); then
|
go_named "$FONOTEKA" ./plugins/golem15/user -short "${USER_ROOT_TESTS[@]}"
|
||||||
go_named "$FONOTEKA" ./plugins/golem15/user/classes -short "${USER_CLASSES_TESTS[@]}"
|
|
||||||
fi
|
|
||||||
if ((${#USER_ROOT_TESTS[@]})); then
|
|
||||||
go_named "$FONOTEKA" ./plugins/golem15/user -short "${USER_ROOT_TESTS[@]}"
|
|
||||||
fi
|
|
||||||
# D-05: additive only. git's status is captured before any filtering, so
|
# D-05: additive only. git's status is captured before any filtering, so
|
||||||
# an unknown base or a broken checkout fails here instead of reading as
|
# an unknown base or a broken checkout fails here instead of reading as
|
||||||
# an empty diff.
|
# an empty diff.
|
||||||
@@ -485,12 +478,7 @@ run_docker() {
|
|||||||
require_dir "$OAUTHSERVER_PLUGIN" "OAuth server plugin"
|
require_dir "$OAUTHSERVER_PLUGIN" "OAuth server plugin"
|
||||||
require_dir "$FONOTEKA" "application workspace"
|
require_dir "$FONOTEKA" "application workspace"
|
||||||
SUMMERCMS_ROOT="$ROOT" go_named "$OAUTHSERVER_PLUGIN" . "-timeout 30m" "${DOCKER_PLUGIN_TESTS[@]}"
|
SUMMERCMS_ROOT="$ROOT" go_named "$OAUTHSERVER_PLUGIN" . "-timeout 30m" "${DOCKER_PLUGIN_TESTS[@]}"
|
||||||
if ((${#DOCKER_USER_CLASSES_TESTS[@]})); then
|
go_named "$FONOTEKA" ./plugins/golem15/user "-timeout 20m" "${DOCKER_USER_ROOT_TESTS[@]}"
|
||||||
go_named "$FONOTEKA" ./plugins/golem15/user/classes "-timeout 20m" "${DOCKER_USER_CLASSES_TESTS[@]}"
|
|
||||||
fi
|
|
||||||
if ((${#DOCKER_USER_ROOT_TESTS[@]})); then
|
|
||||||
go_named "$FONOTEKA" ./plugins/golem15/user "-timeout 20m" "${DOCKER_USER_ROOT_TESTS[@]}"
|
|
||||||
fi
|
|
||||||
go_named "$FONOTEKA" ./plugins/golem15/fono""teka "-timeout 20m" "${DOCKER_APP_OAUTH_TESTS[@]}"
|
go_named "$FONOTEKA" ./plugins/golem15/fono""teka "-timeout 20m" "${DOCKER_APP_OAUTH_TESTS[@]}"
|
||||||
echo "phase19.4 docker passed"
|
echo "phase19.4 docker passed"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user