Skip to content

Commit cff7d37

Browse files
committed
fix(tests): add alternativeDataSourceId to data source fixture
The snapshot_data_sources fixture captures clean server state before each test and restores it after, which was overwriting the alternativeDataSourceId that the test finally blocks set from the expected JSON. Adding it to the layout upload fixture ensures it's present from the start and survives snapshot restore.
1 parent b7007a8 commit cff7d37

123 files changed

Lines changed: 1705 additions & 1522 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ interactions:
103103
X-Content-Type-Options:
104104
- nosniff
105105
X-Gdc-Cancel-Token:
106-
- 75ebf79c-8b57-413e-8905-8f87c275d7c7
106+
- b4d35991-802b-408c-9700-4ca9e7bc5f70
107107
X-GDC-TRACE-ID: *id001
108108
X-Xss-Protection:
109109
- '0'
@@ -155,10 +155,10 @@ interactions:
155155
name: Revenue
156156
localIdentifier: dim_1
157157
links:
158-
executionResult: d60b337013fca31600abb3d636b0552824481d3d:3b1a7fd80969c75386d4191687e7aac6411e48e74da9eaa0c44699c8b65e5771
158+
executionResult: e1a2e0faf75c8d24622d01af1751f7cad0c1d3ba:55c0e3d150b52799a81e34e88af1362523efc9d05ed085d9b32a5b7ad5ee9813
159159
- request:
160160
method: GET
161-
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/d60b337013fca31600abb3d636b0552824481d3d%3A3b1a7fd80969c75386d4191687e7aac6411e48e74da9eaa0c44699c8b65e5771?offset=0%2C0&limit=512%2C256
161+
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/e1a2e0faf75c8d24622d01af1751f7cad0c1d3ba%3A55c0e3d150b52799a81e34e88af1362523efc9d05ed085d9b32a5b7ad5ee9813?offset=0%2C0&limit=512%2C256
162162
body: null
163163
headers:
164164
Accept:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ interactions:
8989
X-Content-Type-Options:
9090
- nosniff
9191
X-Gdc-Cancel-Token:
92-
- 89bdbce1-989f-4d02-a05b-c4651acb16f1
92+
- a7f0232a-fb82-4173-bb10-ed1220a3dc77
9393
X-GDC-TRACE-ID: *id001
9494
X-Xss-Protection:
9595
- '0'
@@ -109,10 +109,10 @@ interactions:
109109
name: Revenue
110110
localIdentifier: dim_0
111111
links:
112-
executionResult: 0f6e8c819d2076d126957770f4de7c7cfdbe94f2:b9fb86afba4a0826554e9283de0216a56182a625b327e2f2086007c84261356b
112+
executionResult: 334e4d8e44a5f3e9f08be3db7113fbf10d3857e2:ab9839706f0a11d10772a80cbae034830571606e4fea3403a5be88b07240e7ba
113113
- request:
114114
method: GET
115-
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/0f6e8c819d2076d126957770f4de7c7cfdbe94f2%3Ab9fb86afba4a0826554e9283de0216a56182a625b327e2f2086007c84261356b?offset=0&limit=256
115+
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/334e4d8e44a5f3e9f08be3db7113fbf10d3857e2%3Aab9839706f0a11d10772a80cbae034830571606e4fea3403a5be88b07240e7ba?offset=0&limit=256
116116
body: null
117117
headers:
118118
Accept:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interactions:
7878
X-Content-Type-Options:
7979
- nosniff
8080
X-Gdc-Cancel-Token:
81-
- 3faa3be7-abe9-4ea1-970b-9e4ea6761c55
81+
- 1256857e-c305-4512-98be-145c8110d7ba
8282
X-GDC-TRACE-ID: *id001
8383
X-Xss-Protection:
8484
- '0'
@@ -111,10 +111,10 @@ interactions:
111111
name: Revenue
112112
localIdentifier: dim_1
113113
links:
114-
executionResult: 8fc634415680e148db8133f5bcd7246f5e0a3c66:660c43f4d90efd070912c98150124c6fdf8549fed14b6eb512a830ff17d7f8b3
114+
executionResult: 92a1e3514ec1752ac38403d033a79fbb68d73e18:051d8c231b8f8e279b9333f8381bf314b9ed78d8e5c0a3cdef9645d7ffea5abb
115115
- request:
116116
method: GET
117-
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/8fc634415680e148db8133f5bcd7246f5e0a3c66%3A660c43f4d90efd070912c98150124c6fdf8549fed14b6eb512a830ff17d7f8b3?offset=0%2C0&limit=512%2C256
117+
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/92a1e3514ec1752ac38403d033a79fbb68d73e18%3A051d8c231b8f8e279b9333f8381bf314b9ed78d8e5c0a3cdef9645d7ffea5abb?offset=0%2C0&limit=512%2C256
118118
body: null
119119
headers:
120120
Accept:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ interactions:
375375
X-Content-Type-Options:
376376
- nosniff
377377
X-Gdc-Cancel-Token:
378-
- 9773d1f6-996c-41d2-bf00-605307ab0284
378+
- c858d9a3-c3a3-4511-817c-80bdbc276c45
379379
X-GDC-TRACE-ID: *id001
380380
X-Xss-Protection:
381381
- '0'
@@ -427,10 +427,10 @@ interactions:
427427
name: Revenue
428428
localIdentifier: dim_1
429429
links:
430-
executionResult: b83f490bb62cdbf7c4775031d6be518ec4b6c922:87b0990eecc60e2913654ddb0e0bab5a51cfc352ae558cbc0e55a0f98fdb2e37
430+
executionResult: 3c5ca12d82a6d9ddc9170f4f0610f43ed5094cf8:8a0b7353a7459f177fc2def327fbde2aa8d2a495ff1fb6c4dbbcdf803d100328
431431
- request:
432432
method: GET
433-
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b83f490bb62cdbf7c4775031d6be518ec4b6c922%3A87b0990eecc60e2913654ddb0e0bab5a51cfc352ae558cbc0e55a0f98fdb2e37?offset=0%2C0&limit=512%2C256
433+
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/3c5ca12d82a6d9ddc9170f4f0610f43ed5094cf8%3A8a0b7353a7459f177fc2def327fbde2aa8d2a495ff1fb6c4dbbcdf803d100328?offset=0%2C0&limit=512%2C256
434434
body: null
435435
headers:
436436
Accept:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ interactions:
375375
X-Content-Type-Options:
376376
- nosniff
377377
X-Gdc-Cancel-Token:
378-
- 66d702d3-4533-4a10-91db-ea0e4c97625c
378+
- 5979298a-dd35-4a48-b183-bbe2a18f7a57
379379
X-GDC-TRACE-ID: *id001
380380
X-Xss-Protection:
381381
- '0'
@@ -427,10 +427,10 @@ interactions:
427427
name: Revenue
428428
localIdentifier: dim_1
429429
links:
430-
executionResult: b83f490bb62cdbf7c4775031d6be518ec4b6c922:87b0990eecc60e2913654ddb0e0bab5a51cfc352ae558cbc0e55a0f98fdb2e37
430+
executionResult: 3c5ca12d82a6d9ddc9170f4f0610f43ed5094cf8:8a0b7353a7459f177fc2def327fbde2aa8d2a495ff1fb6c4dbbcdf803d100328
431431
- request:
432432
method: GET
433-
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/b83f490bb62cdbf7c4775031d6be518ec4b6c922%3A87b0990eecc60e2913654ddb0e0bab5a51cfc352ae558cbc0e55a0f98fdb2e37?offset=0%2C0&limit=512%2C256
433+
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/3c5ca12d82a6d9ddc9170f4f0610f43ed5094cf8%3A8a0b7353a7459f177fc2def327fbde2aa8d2a495ff1fb6c4dbbcdf803d100328?offset=0%2C0&limit=512%2C256
434434
body: null
435435
headers:
436436
Accept:

packages/gooddata-fdw/tests/import_foreign_schema/fixtures/import_compute_without_restrictions.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -600,57 +600,57 @@ interactions:
600600
type: attribute
601601
referenceProperties:
602602
- identifier:
603-
id: campaigns
603+
id: customers
604604
type: dataset
605605
multivalue: false
606606
sources:
607-
- column: campaign_id
607+
- column: customer_id
608608
dataType: INT
609609
target:
610-
id: campaign_id
610+
id: customer_id
611611
type: attribute
612612
isNullable: null
613613
nullValue: null
614614
sourceColumns: null
615615
sourceColumnDataTypes: null
616616
- identifier:
617-
id: products
617+
id: campaigns
618618
type: dataset
619619
multivalue: false
620620
sources:
621-
- column: product_id
621+
- column: campaign_id
622622
dataType: INT
623623
target:
624-
id: product_id
624+
id: campaign_id
625625
type: attribute
626626
isNullable: null
627627
nullValue: null
628628
sourceColumns: null
629629
sourceColumnDataTypes: null
630630
- identifier:
631-
id: customers
631+
id: date
632632
type: dataset
633633
multivalue: false
634634
sources:
635-
- column: customer_id
636-
dataType: INT
635+
- column: date
636+
dataType: DATE
637637
target:
638-
id: customer_id
639-
type: attribute
638+
id: date
639+
type: date
640640
isNullable: null
641641
nullValue: null
642642
sourceColumns: null
643643
sourceColumnDataTypes: null
644644
- identifier:
645-
id: date
645+
id: products
646646
type: dataset
647647
multivalue: false
648648
sources:
649-
- column: date
650-
dataType: DATE
649+
- column: product_id
650+
dataType: INT
651651
target:
652-
id: date
653-
type: date
652+
id: product_id
653+
type: attribute
654654
isNullable: null
655655
nullValue: null
656656
sourceColumns: null
@@ -1262,57 +1262,57 @@ interactions:
12621262
type: attribute
12631263
referenceProperties:
12641264
- identifier:
1265-
id: campaigns
1265+
id: customers
12661266
type: dataset
12671267
multivalue: false
12681268
sources:
1269-
- column: campaign_id
1269+
- column: customer_id
12701270
dataType: INT
12711271
target:
1272-
id: campaign_id
1272+
id: customer_id
12731273
type: attribute
12741274
isNullable: null
12751275
nullValue: null
12761276
sourceColumns: null
12771277
sourceColumnDataTypes: null
12781278
- identifier:
1279-
id: products
1279+
id: campaigns
12801280
type: dataset
12811281
multivalue: false
12821282
sources:
1283-
- column: product_id
1283+
- column: campaign_id
12841284
dataType: INT
12851285
target:
1286-
id: product_id
1286+
id: campaign_id
12871287
type: attribute
12881288
isNullable: null
12891289
nullValue: null
12901290
sourceColumns: null
12911291
sourceColumnDataTypes: null
12921292
- identifier:
1293-
id: customers
1293+
id: date
12941294
type: dataset
12951295
multivalue: false
12961296
sources:
1297-
- column: customer_id
1298-
dataType: INT
1297+
- column: date
1298+
dataType: DATE
12991299
target:
1300-
id: customer_id
1301-
type: attribute
1300+
id: date
1301+
type: date
13021302
isNullable: null
13031303
nullValue: null
13041304
sourceColumns: null
13051305
sourceColumnDataTypes: null
13061306
- identifier:
1307-
id: date
1307+
id: products
13081308
type: dataset
13091309
multivalue: false
13101310
sources:
1311-
- column: date
1312-
dataType: DATE
1311+
- column: product_id
1312+
dataType: INT
13131313
target:
1314-
id: date
1315-
type: date
1314+
id: product_id
1315+
type: attribute
13161316
isNullable: null
13171317
nullValue: null
13181318
sourceColumns: null

0 commit comments

Comments
 (0)