test(conga,lagoon): River and GORM bridges
- River logs as component river at warn, conga at log.level, -v lets River info through - an app-published logger wins for River and conga - GORM: warn by default, info traces at -vvv, record-not-found ignored, parameterized SQL - gate: the diary, sunscreen, conga and lagoon names in the go stage
This commit is contained in:
@@ -63,6 +63,23 @@ SUMMERCMSIO_APP="${SUMMERCMSIO_APP:-$ROOT/../sm-summercmsio-app}"
|
||||
DIARY_TESTS=(
|
||||
# Plan 01.
|
||||
TestDiaryTracerSmoke TestConfigEnvSmoke TestDailyDegradesSmoke
|
||||
# Plan 04: config rules, floors, verbosity, quiet (D-08, D-09).
|
||||
TestConfigRules TestConfigEnvStrings TestDefaultConfig
|
||||
TestComponentFloors TestVerbosityLevels TestQuietConsoleOnly
|
||||
# Plan 04: daily files (D-10).
|
||||
TestDailyRotation TestDailyRetention TestDailyPermissions
|
||||
TestDailyUnwritable TestDailyLazyOpen TestPathConfinement
|
||||
# Plan 04: redaction, the console handler, lifecycle, concurrency (D-12).
|
||||
TestRedactionEveryDriver TestConsoleStripsControlChars
|
||||
TestConsoleComponentPrefix TestConsoleStyledOnlyOnTerminal
|
||||
TestConsoleLevelFromOptions TestForBeforeSetup TestResetRestoresDefault
|
||||
TestNoRecursionWithoutState TestHideOnTTY TestConcurrentWrites
|
||||
# Plan 04: testing/slogtest conformance.
|
||||
TestSlogtestConsoleHandler TestSlogtestPipeline
|
||||
)
|
||||
SUNSCREEN_TESTS=(
|
||||
# Plan 04: the compatibility entry point.
|
||||
TestInstallDefault TestInstallDefaultUnchanged
|
||||
)
|
||||
BONFIRE_TESTS=(
|
||||
# Plan 02.
|
||||
@@ -72,10 +89,14 @@ BONFIRE_TESTS=(
|
||||
CONGA_TESTS=(
|
||||
# Plan 01.
|
||||
TestRiverLoggerUsesDiarySmoke
|
||||
# Plan 04 (D-09).
|
||||
TestRiverLoggerComponent TestRiverLoggerPublishedOverride
|
||||
)
|
||||
LAGOON_TESTS=(
|
||||
# Plan 01.
|
||||
TestGormLoggerUsesDiarySmoke
|
||||
# Plan 04 (D-09).
|
||||
TestGormLoggerLevels
|
||||
)
|
||||
SURF_TESTS=(
|
||||
# Plan 03.
|
||||
@@ -293,18 +314,19 @@ run_go() {
|
||||
go_vet "$ROOT" ./...
|
||||
go_short "$ROOT"
|
||||
go_named "$ROOT" ./modules/diary -short "${DIARY_TESTS[@]}"
|
||||
go_named "$ROOT" ./modules/sunscreen -short "${SUNSCREEN_TESTS[@]}"
|
||||
go_named "$ROOT" ./modules/bonfire -short "${BONFIRE_TESTS[@]}"
|
||||
go_named "$ROOT" ./modules/conga -short "${CONGA_TESTS[@]}"
|
||||
go_named "$ROOT" ./modules/lagoon -short "${LAGOON_TESTS[@]}"
|
||||
go_named "$ROOT" ./modules/surf -short "${SURF_TESTS[@]}"
|
||||
go_named "$ROOT" ./cmd/summer -short "${SUMMER_TESTS[@]}"
|
||||
local out
|
||||
if ! out="$(cd "$ROOT" && go test -count=1 -race -short ./modules/diary/... ./modules/bonfire/... 2>&1)"; then
|
||||
if ! out="$(cd "$ROOT" && go test -count=1 -race -short ./modules/diary/... ./modules/sunscreen/... ./modules/bonfire/... 2>&1)"; then
|
||||
printf '%s\n' "$out" | tail -n 60 >&2
|
||||
echo "refuse: go test -race -short of diary and bonfire" >&2
|
||||
echo "refuse: go test -race -short of diary, sunscreen and bonfire" >&2
|
||||
return 1
|
||||
fi
|
||||
echo "race: modules/diary, modules/bonfire"
|
||||
echo "race: modules/diary, modules/sunscreen, modules/bonfire"
|
||||
echo "phase19.8 go passed"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user