feat(tests): overhaul staging test infrastructure and update fixtures#1392
feat(tests): overhaul staging test infrastructure and update fixtures#1392
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1392 +/- ##
==========================================
- Coverage 77.36% 77.24% -0.12%
==========================================
Files 228 227 -1
Lines 14775 14672 -103
==========================================
- Hits 11430 11334 -96
+ Misses 3345 3338 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
44844f3 to
54e15b1
Compare
|
I analyzed why there were some of the bigger deletes in the fixtures The new pattern uses safe_delete() which only calls the delete, no verification list: This removes the final GET ...?page=0&size=500 call that verified the entity was gone. |
b8b6a13 to
d2e0811
Compare
c88213d to
add5390
Compare
cf35e1a to
be7b556
Compare
Update all auto-generated API client code (docs, api, models) and schema JSON files to match the latest OpenAPI specification.
- Add staging test workflow and env-based config overrides (GD_TEST_ENV) - Remove deprecated LLM endpoint entity model, service methods, and tests - Tighten test assertions to use exact counts and equality checks - Replace fragile fixture-file patching with in-memory inject_ds_connection() - Add clean_staging.py and org-id layout symlinks - Add GRPC_FORGE_HOST/PORT env vars to docker-compose api-gw service
Re-record all VCR cassettes against local environment to reflect changes from the latest API client regeneration.
6621b72 to
7b95d35
Compare
packages/gooddata-sdk/tests/catalog/test_catalog_data_source.py
Outdated
Show resolved
Hide resolved
Move BigQuery/Databricks dummy credentials to shared config section so they are defined once and reused by all environments. The staging env previously used structurally invalid placeholders (e.g. "dummy-bigquery-token") that failed backend schema validation, forcing a pytest.skip. Now both local and staging use the same Base64-encoded service account JSON that passes BigQueryDataSourceValidator. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Added staging test support (PYTHON_DEX), which required rewrites in the test
infrastructure (dynamic PostgreSQL URL replacement instead of duplicating fixtures)
and a new CI workflow for pre-merge staging tests.
Changes by commit
1.
chore: regenerate API client from updated OpenAPI spec2.
feat(ci): add staging test infrastructure and harden test setupstaging-tests.yamlworkflow (triggered by label,/test-stagingcomment, or manual dispatch)conftest.pyfor dynamic data source URL replacement (staging vs local)clean_staging.pyandupload_demo_layout.pyhelper scriptsTOKEN=argumentInAttributesafter spec removedPatchAttributesalternativeDataSourceIdto data source fixture3.
chore: regenerate test cassettesTest plan
JIRA: DX-431
risk: low