Commit 985422f
committed
feat(tests): environment-agnostic VCR cassette normalization
Add configure_normalization() to vcrpy_utils that rewrites all
environment-specific values to canonical local equivalents during
cassette recording. Normalization covers:
- Request URIs: staging host -> http://localhost:3000
- Request bodies: org_id, org_name in JSON payloads (bytes + str)
- Response bodies: all env-specific values (bytes + str)
- Response headers: Location headers with org_id paths
When running against local, the replacements list is empty (no-op).
IMPORTANT: When modifying tests-support, clear caches first:
rm -rf packages/gooddata-sdk/.tox
uv cache clean tests-support --force
risk: low1 parent 2c2a7ae commit 985422f
File tree
378 files changed
+46043
-41119
lines changed- packages
- gooddata-fdw/tests
- execute/fixtures
- import_foreign_schema/fixtures
- gooddata-pandas/tests
- dataframe/fixtures
- series/fixtures
- gooddata-sdk/tests
- catalog
- expected
- fixtures
- data_sources
- organization
- permissions
- users
- workspace_content
- workspaces
- load
- gooddata_layouts/default
- workspaces_data_filters
- workspaces
- demo_west_california
- demo_west
- analytics_model/analytical_dashboard_extensions
- ldm/dataset_extensions
- demo
- analytics_model
- analytical_dashboards
- dashboard_plugins
- filter_contexts
- metrics
- visualization_objects
- ldm
- datasets
- date_instances
- workspace_content/gooddata_layouts/default/workspaces
- demo_testing
- analytics_model
- analytical_dashboards
- dashboard_plugins
- filter_contexts
- metrics
- visualization_objects
- ldm
- datasets
- date_instances
- demo
- analytics_model
- analytical_dashboards
- dashboard_plugins
- filter_contexts
- metrics
- visualization_objects
- ldm
- datasets
- date_instances
- refresh
- export/fixtures
- support/fixtures
- table/fixtures
- tests-support/src/tests_support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
378 files changed
+46043
-41119
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
Lines changed: 41 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | 602 | | |
617 | 603 | | |
618 | 604 | | |
| |||
623 | 609 | | |
624 | 610 | | |
625 | 611 | | |
626 | | - | |
| 612 | + | |
627 | 613 | | |
628 | 614 | | |
629 | 615 | | |
| |||
637 | 623 | | |
638 | 624 | | |
639 | 625 | | |
640 | | - | |
| 626 | + | |
641 | 627 | | |
642 | 628 | | |
643 | 629 | | |
| |||
651 | 637 | | |
652 | 638 | | |
653 | 639 | | |
654 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
665 | 663 | | |
666 | 664 | | |
| 665 | + | |
| 666 | + | |
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | | - | |
| 1092 | + | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | | - | |
| 1141 | + | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
| |||
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | 1264 | | |
1279 | 1265 | | |
1280 | 1266 | | |
| |||
1285 | 1271 | | |
1286 | 1272 | | |
1287 | 1273 | | |
1288 | | - | |
| 1274 | + | |
1289 | 1275 | | |
1290 | 1276 | | |
1291 | 1277 | | |
| |||
1299 | 1285 | | |
1300 | 1286 | | |
1301 | 1287 | | |
1302 | | - | |
| 1288 | + | |
1303 | 1289 | | |
1304 | 1290 | | |
1305 | 1291 | | |
| |||
1313 | 1299 | | |
1314 | 1300 | | |
1315 | 1301 | | |
1316 | | - | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | | - | |
1327 | | - | |
1328 | 1326 | | |
1329 | 1327 | | |
| 1328 | + | |
| 1329 | + | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| |||
0 commit comments