test(17-06): gate requires the plugin and host suites

The plugins stage runs the Docker-free Journal, sitemap, menu, FAQ and
host tests by name per package; the postgres stage adds TestMenuItemTypes,
TestImportWinter, TestMenuEntryBeforeSave, TestMenuAPI, TestMenuImport,
TestFaqAPI and TestFaqImport.
This commit is contained in:
2026-10-12 19:44:54 +02:00
parent f622b686ae
commit 40b89ad00d

View File

@@ -66,15 +66,24 @@ PACT_TESTS=(TestOptionDepthOmitEmpty TestMenuItemTypeContracts)
PARTY_TESTS=(TestActivateMenuItemTypesOrder)
CABANA_SHORT_TESTS=(TestRepeaterCompile TestRepeaterDecode TestDependentDropdownCompile TestDependentValues TestRichEditorCompile TestReorderConfigCompile TestSingletonCompile TestPhase10ConformanceInventory)
# plugins stage: Docker-free plugin and host suites (-short).
SITEMAP_SHORT_TESTS=(TestSitemapGolden TestSitemapTiersConfig)
# plugins stage: Docker-free plugin and host suites (-short), per package.
JOURNAL_CLASSES_TESTS=(TestMenuItemTypesPatterns)
SITEMAP_CLASSES_TESTS=(TestSitemapGolden TestSitemapTiersConfig TestURLTo TestXMLEscaping TestTiers TestRewrite TestHooks TestManifest TestURLCap)
SITEMAP_MODELS_TESTS=(TestFillable TestDefinitionItemJSON)
SITEMAP_ROOT_TESTS=(TestBackendURL)
MENU_CLASSES_TESTS=(TestAllowedURL TestMenuTree)
MENU_MODELS_TESTS=(TestMenuEntryModel)
FAQ_CONSOLE_TESTS=(TestFaqContentDecode)
FAQ_MODELS_TESTS=(TestFaqModel)
FAQ_API_TESTS=(TestFaqSerialize)
HOST_SHORT_TESTS=(TestBootUserTranslateJournal TestBackendURIGfadmin TestGrzybyCommandsRegistered TestCORS)
# postgres stage: testcontainers suites.
PG_CABANA_TESTS=(TestCompanionsDependentSmoke TestCompanionsRichEditorSmoke TestCompanionsRepeaterSmoke TestCompanionsReorderSmoke TestCompanionsSingletonSmoke TestRepeaterSave TestDependentRecheck TestRichEditor TestReorderPostgres TestSingleton TestPhase10OpenAPIConformance)
PG_JOURNAL_TESTS=(TestMenuItemTypesSmoke)
PG_SITEMAP_TESTS=(TestSitemapTracer TestSitemapImportSmoke TestSitemapAdminSmoke)
PG_MENU_TESTS=(TestMenuAdminSmoke TestMenuImportSmoke TestMenuAPISmoke)
PG_FAQ_TESTS=(TestFaqAdminSmoke TestFaqImportSmoke TestFaqAPISmoke)
PG_JOURNAL_TESTS=(TestMenuItemTypesSmoke TestMenuItemTypes)
PG_SITEMAP_TESTS=(TestSitemapTracer TestSitemapImportSmoke TestSitemapAdminSmoke TestImportWinter)
PG_MENU_TESTS=(TestMenuAdminSmoke TestMenuImportSmoke TestMenuAPISmoke TestMenuEntryBeforeSave TestMenuAPI TestMenuImport)
PG_FAQ_TESTS=(TestFaqAdminSmoke TestFaqImportSmoke TestFaqAPISmoke TestFaqAPI TestFaqImport)
PG_HOST_TESTS=(TestCompanionsHost)
# admin stage: vitest spec files and full test names (describe + it).
@@ -528,7 +537,16 @@ run_plugins() {
go -C "$repo" vet ./...
echo "vet: $repo"
done
go_named "$SITEMAP" ./classes -short "${SITEMAP_SHORT_TESTS[@]}"
go_named "$JOURNAL" ./classes -short "${JOURNAL_CLASSES_TESTS[@]}"
go_named "$SITEMAP" ./classes -short "${SITEMAP_CLASSES_TESTS[@]}"
go_named "$SITEMAP" ./models -short "${SITEMAP_MODELS_TESTS[@]}"
go_named "$SITEMAP" . -short "${SITEMAP_ROOT_TESTS[@]}"
go_named "$MENU" ./classes -short "${MENU_CLASSES_TESTS[@]}"
go_named "$MENU" ./models -short "${MENU_MODELS_TESTS[@]}"
go_named "$FAQ" ./console -short "${FAQ_CONSOLE_TESTS[@]}"
go_named "$FAQ" ./models -short "${FAQ_MODELS_TESTS[@]}"
go_named "$FAQ" ./controllers/api -short "${FAQ_API_TESTS[@]}"
go_named "$HOST" . -short "${HOST_SHORT_TESTS[@]}"
echo "phase17 plugins passed"
}