Skip to content

Commit 9755b28

Browse files
committed
chore(tests): strip infra headers from FDW and pandas cassettes
Re-record FDW and pandas VCR cassettes so that _STRIPPED_RESPONSE_HEADERS (Cache-Control, Content-Length, Vary, Referrer-Policy, X-Xss-Protection, etc.) are removed from response sections. These headers differ between local and staging environments and are irrelevant to API behavior. risk: low
1 parent cd8d74d commit 9755b28

48 files changed

Lines changed: 143 additions & 2183 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/gooddata-fdw/tests/execute/fixtures/execute_compute_table_all_columns.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,6 @@ interactions:
127127
links:
128128
executionResult: EXECUTION_RESULT_0
129129
headers:
130-
Cache-Control:
131-
- no-cache, no-store, max-age=0, must-revalidate
132-
Content-Length:
133-
- '1128'
134130
Content-Type:
135131
- application/json
136132
DATE: &id001
@@ -139,18 +135,10 @@ interactions:
139135
- '0'
140136
Pragma:
141137
- no-cache
142-
Referrer-Policy:
143-
- no-referrer
144-
Vary:
145-
- Origin
146-
- Access-Control-Request-Method
147-
- Access-Control-Request-Headers
148138
X-Content-Type-Options:
149139
- nosniff
150140
X-GDC-CANCEL-TOKEN: *id001
151141
X-GDC-TRACE-ID: *id001
152-
X-Xss-Protection:
153-
- '0'
154142
status:
155143
code: 200
156144
message: OK
@@ -379,28 +367,16 @@ interactions:
379367
- 18
380368
- 4
381369
headers:
382-
Cache-Control:
383-
- no-cache, no-store, max-age=0, must-revalidate
384-
Content-Length:
385-
- '3913'
386370
Content-Type:
387371
- application/json
388372
DATE: *id001
389373
Expires:
390374
- '0'
391375
Pragma:
392376
- no-cache
393-
Referrer-Policy:
394-
- no-referrer
395-
Vary:
396-
- Origin
397-
- Access-Control-Request-Method
398-
- Access-Control-Request-Headers
399377
X-Content-Type-Options:
400378
- nosniff
401379
X-GDC-TRACE-ID: *id001
402-
X-Xss-Protection:
403-
- '0'
404380
status:
405381
code: 200
406382
message: OK

packages/gooddata-fdw/tests/execute/fixtures/execute_compute_table_metrics_only.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ interactions:
8181
links:
8282
executionResult: EXECUTION_RESULT_1
8383
headers:
84-
Cache-Control:
85-
- no-cache, no-store, max-age=0, must-revalidate
86-
Content-Length:
87-
- '465'
8884
Content-Type:
8985
- application/json
9086
DATE: &id001
@@ -93,18 +89,10 @@ interactions:
9389
- '0'
9490
Pragma:
9591
- no-cache
96-
Referrer-Policy:
97-
- no-referrer
98-
Vary:
99-
- Origin
100-
- Access-Control-Request-Method
101-
- Access-Control-Request-Headers
10292
X-Content-Type-Options:
10393
- nosniff
10494
X-GDC-CANCEL-TOKEN: *id001
10595
X-GDC-TRACE-ID: *id001
106-
X-Xss-Protection:
107-
- '0'
10896
status:
10997
code: 200
11098
message: OK
@@ -151,28 +139,16 @@ interactions:
151139
total:
152140
- 4
153141
headers:
154-
Cache-Control:
155-
- no-cache, no-store, max-age=0, must-revalidate
156-
Content-Length:
157-
- '345'
158142
Content-Type:
159143
- application/json
160144
DATE: *id001
161145
Expires:
162146
- '0'
163147
Pragma:
164148
- no-cache
165-
Referrer-Policy:
166-
- no-referrer
167-
Vary:
168-
- Origin
169-
- Access-Control-Request-Method
170-
- Access-Control-Request-Headers
171149
X-Content-Type-Options:
172150
- nosniff
173151
X-GDC-TRACE-ID: *id001
174-
X-Xss-Protection:
175-
- '0'
176152
status:
177153
code: 200
178154
message: OK

packages/gooddata-fdw/tests/execute/fixtures/execute_compute_table_with_reduced_granularity.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ interactions:
8383
links:
8484
executionResult: EXECUTION_RESULT_2
8585
headers:
86-
Cache-Control:
87-
- no-cache, no-store, max-age=0, must-revalidate
88-
Content-Length:
89-
- '689'
9086
Content-Type:
9187
- application/json
9288
DATE: &id001
@@ -95,18 +91,10 @@ interactions:
9591
- '0'
9692
Pragma:
9793
- no-cache
98-
Referrer-Policy:
99-
- no-referrer
100-
Vary:
101-
- Origin
102-
- Access-Control-Request-Method
103-
- Access-Control-Request-Headers
10494
X-Content-Type-Options:
10595
- nosniff
10696
X-GDC-CANCEL-TOKEN: *id001
10797
X-GDC-TRACE-ID: *id001
108-
X-Xss-Protection:
109-
- '0'
11098
status:
11199
code: 200
112100
message: OK
@@ -170,28 +158,16 @@ interactions:
170158
- 4
171159
- 2
172160
headers:
173-
Cache-Control:
174-
- no-cache, no-store, max-age=0, must-revalidate
175-
Content-Length:
176-
- '655'
177161
Content-Type:
178162
- application/json
179163
DATE: *id001
180164
Expires:
181165
- '0'
182166
Pragma:
183167
- no-cache
184-
Referrer-Policy:
185-
- no-referrer
186-
Vary:
187-
- Origin
188-
- Access-Control-Request-Method
189-
- Access-Control-Request-Headers
190168
X-Content-Type-Options:
191169
- nosniff
192170
X-GDC-TRACE-ID: *id001
193-
X-Xss-Protection:
194-
- '0'
195171
status:
196172
code: 200
197173
message: OK

packages/gooddata-fdw/tests/execute/fixtures/execute_insight_all_columns.yaml

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ interactions:
112112
direction: asc
113113
version: '2'
114114
visualizationUrl: local:table
115-
createdAt: 2025-08-07 11:45
115+
createdAt: 2000-01-01 00:00
116116
title: Revenue and Quantity by Product and Category
117117
id: revenue_and_quantity_by_product_and_category
118118
meta:
@@ -163,7 +163,7 @@ interactions:
163163
format: $#,##0
164164
maql: SELECT {metric/order_amount} WHERE NOT ({label/order_status}
165165
IN ("Returned", "Canceled"))
166-
createdAt: 2025-08-07 11:45
166+
createdAt: 2000-01-01 00:00
167167
description: ''
168168
title: Revenue
169169
id: revenue
@@ -220,7 +220,7 @@ interactions:
220220
format: '#,##0.0%'
221221
maql: SELECT {metric/revenue} / (SELECT {metric/revenue} BY {attribute/products.category},
222222
ALL OTHER)
223-
createdAt: 2025-08-07 11:45
223+
createdAt: 2000-01-01 00:00
224224
title: '% Revenue in Category'
225225
id: percent_revenue_in_category
226226
links:
@@ -243,10 +243,6 @@ interactions:
243243
links:
244244
self: http://localhost:3000/api/v1/entities/workspaces/demo/visualizationObjects/revenue_and_quantity_by_product_and_category?include=ALL
245245
headers:
246-
Cache-Control:
247-
- no-cache, no-store, max-age=0, must-revalidate
248-
Content-Length:
249-
- '5096'
250246
Content-Type:
251247
- application/json
252248
DATE: &id001
@@ -255,17 +251,9 @@ interactions:
255251
- '0'
256252
Pragma:
257253
- no-cache
258-
Referrer-Policy:
259-
- no-referrer
260-
Vary:
261-
- Origin
262-
- Access-Control-Request-Method
263-
- Access-Control-Request-Headers
264254
X-Content-Type-Options:
265255
- nosniff
266256
X-GDC-TRACE-ID: *id001
267-
X-Xss-Protection:
268-
- '0'
269257
status:
270258
code: 200
271259
message: OK
@@ -400,29 +388,17 @@ interactions:
400388
links:
401389
executionResult: EXECUTION_RESULT_3
402390
headers:
403-
Cache-Control:
404-
- no-cache, no-store, max-age=0, must-revalidate
405-
Content-Length:
406-
- '1235'
407391
Content-Type:
408392
- application/json
409393
DATE: *id001
410394
Expires:
411395
- '0'
412396
Pragma:
413397
- no-cache
414-
Referrer-Policy:
415-
- no-referrer
416-
Vary:
417-
- Origin
418-
- Access-Control-Request-Method
419-
- Access-Control-Request-Headers
420398
X-Content-Type-Options:
421399
- nosniff
422400
X-GDC-CANCEL-TOKEN: *id001
423401
X-GDC-TRACE-ID: *id001
424-
X-Xss-Protection:
425-
- '0'
426402
status:
427403
code: 200
428404
message: OK
@@ -651,28 +627,16 @@ interactions:
651627
- 18
652628
- 4
653629
headers:
654-
Cache-Control:
655-
- no-cache, no-store, max-age=0, must-revalidate
656-
Content-Length:
657-
- '4089'
658630
Content-Type:
659631
- application/json
660632
DATE: *id001
661633
Expires:
662634
- '0'
663635
Pragma:
664636
- no-cache
665-
Referrer-Policy:
666-
- no-referrer
667-
Vary:
668-
- Origin
669-
- Access-Control-Request-Method
670-
- Access-Control-Request-Headers
671637
X-Content-Type-Options:
672638
- nosniff
673639
X-GDC-TRACE-ID: *id001
674-
X-Xss-Protection:
675-
- '0'
676640
status:
677641
code: 200
678642
message: OK

0 commit comments

Comments
 (0)