test(19.6): gate requires the user-plugin unit tests
- userplugin stage: TestLoginGates (also under -race), TestDeviceAuthURL, TestDeviceDisplayName and TestDeviceCodes in classes - docker stage: the gate order, password-change sources, reset action and device-flow tests, and TestDeviceAuthSessionsMigration in updates
This commit is contained in:
@@ -109,8 +109,16 @@ MFA_PINS=("github.com/pquerna/otp v1.5.0" "github.com/boombuler/barcode v1.1.0"
|
||||
USER_ROOT_TESTS=(
|
||||
# Plan 01.
|
||||
TestLoginGatesSmoke TestDeviceCodesSmoke
|
||||
# Plan 04: the registry (D-02), the auth_url template and TTL, the
|
||||
# display name (D-11).
|
||||
TestLoginGates TestDeviceAuthURL TestDeviceDisplayName
|
||||
)
|
||||
# The same stage runs these again under -race (concurrent Add and Check).
|
||||
USER_RACE_TESTS=(TestLoginGates)
|
||||
USER_CLASSES_TESTS=(
|
||||
# Plan 04: tokens, short codes and their normalization (D-11, D-06).
|
||||
TestDeviceCodes
|
||||
)
|
||||
USER_CLASSES_TESTS=()
|
||||
|
||||
# mfa stage: the second-factor plugin's Docker-free tests (-short).
|
||||
MFA_TESTS=(
|
||||
@@ -140,8 +148,18 @@ DOCKER_USER_ROOT_TESTS=(
|
||||
# Plan 01.
|
||||
TestLoginGateSmoke TestPasswordChangedEventSmoke TestResetTwoFactorSlotSmoke
|
||||
TestDeviceFlowSmoke TestDeviceRevokeSmoke
|
||||
# Plan 04: Login's gate order (D-02, D-18 A10), the password-change
|
||||
# sources (D-07), the reset action (D-15).
|
||||
TestLoginGateOrder TestPasswordChangedSources TestResetTwoFactorAction
|
||||
# Plan 04: the device flow (D-11, D-12a, D-12b, D-12c, D-06).
|
||||
TestDeviceInitiate TestDeviceStatus TestDeviceAuthorize
|
||||
TestDeviceHandOverConcurrent TestDeviceListAndRevoke
|
||||
TestDeviceRevokeAfterRefresh TestDeviceTokensAtRest
|
||||
)
|
||||
DOCKER_USER_UPDATES_TESTS=(
|
||||
# Plan 04: the device-session migration (D-16).
|
||||
TestDeviceAuthSessionsMigration
|
||||
)
|
||||
DOCKER_USER_UPDATES_TESTS=()
|
||||
DOCKER_MFA_TESTS=(
|
||||
# Plans 02 and 03.
|
||||
TestTracerSmoke TestChallengeSmoke TestTrustedSettingsSmoke
|
||||
@@ -582,6 +600,7 @@ run_userplugin() {
|
||||
go_vet "$FONOTEKA" ./plugins/golem15/user/...
|
||||
go_short "$FONOTEKA" ./plugins/golem15/user/...
|
||||
go_named "$FONOTEKA" ./plugins/golem15/user -short "${USER_ROOT_TESTS[@]}"
|
||||
go_named "$FONOTEKA" ./plugins/golem15/user "-short -race" "${USER_RACE_TESTS[@]}"
|
||||
if ((${#USER_CLASSES_TESTS[@]})); then
|
||||
go_named "$FONOTEKA" ./plugins/golem15/user/classes -short "${USER_CLASSES_TESTS[@]}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user