test(18.1-06): require the pgstripe unit and Postgres tests in the phase 18.1 gate (task 4)
- plugins stage: pgstripe root and ./subscriptions Docker-free names - postgres stage: the settings, import, secrets and Phase 18 host suites in the root, and the subscription host, webhook, job, plan sync, gateway and PHP map suites in ./subscriptions
This commit is contained in:
@@ -71,8 +71,8 @@ CABANA_SHORT_TESTS=(
|
||||
PGSUB_MODELS_TESTS=(TestSubscriptionChecks TestPlanPrices TestFeatureList)
|
||||
PGSUB_CONTRACTS_TESTS=(TestRegistry)
|
||||
PGSUB_ROOT_TESTS=(TestLangParity TestAdminLangParity TestAdminCatalog TestRedirectURLs TestFixtureAbsentFromProduction)
|
||||
PGSTRIPE_ROOT_TESTS=(TestSDKPin)
|
||||
PGSTRIPE_SUBS_TESTS=()
|
||||
PGSTRIPE_ROOT_TESTS=(TestSDKPin TestStripeDataHandling TestStripeAuthentication TestFixtureAbsentFromProduction)
|
||||
PGSTRIPE_SUBS_TESTS=(TestDecodeSubscription TestDecodeInvoice TestJobArgsMinimal)
|
||||
|
||||
# postgres stage: testcontainers suites, per repository and package.
|
||||
PG_CABANA_TESTS=(TestTaglistFieldSmoke TestReorderFlatSmoke TestReorderPostgres)
|
||||
@@ -84,8 +84,19 @@ PG_PGSUB_TESTS=(
|
||||
TestBaselineSchema
|
||||
TestServiceAPI TestAdminSyncActions TestCustomerAPIAuthz
|
||||
)
|
||||
PG_PGSTRIPE_ROOT_TESTS=()
|
||||
PG_PGSTRIPE_SUBS_TESTS=(TestHostSubscriptionFlow)
|
||||
PG_PGSTRIPE_ROOT_TESTS=(
|
||||
TestStripeSettingsSmoke TestStripeImportWinterSmoke
|
||||
TestStripeSubscriptionSecrets
|
||||
TestHostStripeFlow
|
||||
)
|
||||
PG_PGSTRIPE_SUBS_TESTS=(
|
||||
TestHostSubscriptionFlow TestSubscriptionWebhookSmoke
|
||||
TestSubscriptionJob
|
||||
TestSyncPlan
|
||||
TestSubscriptionGateway
|
||||
TestStripeSubscriptionReliability
|
||||
TestSubscriptionAuthentication
|
||||
)
|
||||
|
||||
# admin stage: vitest spec files and full test names (describe + it).
|
||||
ADMIN_FILES=(
|
||||
@@ -589,7 +600,7 @@ run_plugins() {
|
||||
go_named "$PGSUB" ./contracts -short ${PGSUB_CONTRACTS_TESTS[@]+"${PGSUB_CONTRACTS_TESTS[@]}"}
|
||||
go_named "$PGSUB" . -short ${PGSUB_ROOT_TESTS[@]+"${PGSUB_ROOT_TESTS[@]}"}
|
||||
go_named "$PGSTRIPE" . -short ${PGSTRIPE_ROOT_TESTS[@]+"${PGSTRIPE_ROOT_TESTS[@]}"}
|
||||
go_named "$PGSTRIPE" ./subscriptions -short ${PGSTRIPE_SUBS_TESTS[@]+"${PGSTRIPE_SUBS_TESTS[@]}"}
|
||||
go_named "$PGSTRIPE" ./subscriptions -short "${PGSTRIPE_SUBS_TESTS[@]}"
|
||||
echo "phase18.1 plugins passed"
|
||||
}
|
||||
|
||||
@@ -634,7 +645,7 @@ run_postgres() {
|
||||
fi
|
||||
go_named "$ROOT" ./modules/cabana "-timeout 20m" "${PG_CABANA_TESTS[@]}"
|
||||
go_named "$PGSUB" . "-timeout 20m" "${PG_PGSUB_TESTS[@]}"
|
||||
go_named "$PGSTRIPE" . "-timeout 20m" ${PG_PGSTRIPE_ROOT_TESTS[@]+"${PG_PGSTRIPE_ROOT_TESTS[@]}"}
|
||||
go_named "$PGSTRIPE" . "-timeout 20m" "${PG_PGSTRIPE_ROOT_TESTS[@]}"
|
||||
go_named "$PGSTRIPE" ./subscriptions "-timeout 20m" "${PG_PGSTRIPE_SUBS_TESTS[@]}"
|
||||
echo "phase18.1 postgres passed"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user