Skip to content

Commit ffa2be4

Browse files
committed
test: add a test for locales in declarative api
jira: CQ-1650 risk: nonprod
1 parent a14d5dd commit ffa2be4

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

packages/gooddata-sdk/tests/catalog/expected/declarative_workspaces.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,6 +2544,13 @@
25442544
"id": "geo__state__location",
25452545
"sourceColumn": "geo__state__location",
25462546
"sourceColumnDataType": "STRING",
2547+
"locale": "en-US",
2548+
"translations": [
2549+
{
2550+
"locale": "cs-CZ",
2551+
"sourceColumn": "geo__state__location_cz"
2552+
}
2553+
],
25472554
"tags": [
25482555
"Customers"
25492556
],

packages/gooddata-sdk/tests/catalog/fixtures/workspaces/demo_load_and_put_declarative_workspaces.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ interactions:
381381
tags:
382382
- Customers
383383
valueType: GEO
384+
locale: en-US
385+
translations:
386+
- locale: cs-CZ
387+
sourceColumn: geo__state__location_cz
384388
sourceColumn: state
385389
title: State
386390
sourceColumnDataType: STRING
@@ -2031,7 +2035,7 @@ interactions:
20312035
Cache-Control:
20322036
- no-cache, no-store, max-age=0, must-revalidate
20332037
Content-Length:
2034-
- '36287'
2038+
- '36381'
20352039
Content-Type:
20362040
- application/json
20372041
DATE: *id001
@@ -3558,11 +3562,15 @@ interactions:
35583562
labels:
35593563
- description: Location
35603564
id: geo__state__location
3565+
locale: en-US
35613566
sourceColumn: geo__state__location
35623567
sourceColumnDataType: STRING
35633568
tags:
35643569
- Customers
35653570
title: Location
3571+
translations:
3572+
- locale: cs-CZ
3573+
sourceColumn: geo__state__location_cz
35663574
valueType: GEO
35673575
sourceColumn: state
35683576
sourceColumnDataType: STRING
@@ -5339,6 +5347,10 @@ interactions:
53395347
title: Location
53405348
description: Location
53415349
sourceColumnDataType: STRING
5350+
locale: en-US
5351+
translations:
5352+
- locale: cs-CZ
5353+
sourceColumn: geo__state__location_cz
53425354
tags:
53435355
- Customers
53445356
valueType: GEO

packages/gooddata-sdk/tests/catalog/load/gooddata_layouts/default/workspaces/demo/ldm/datasets/customers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ attributes:
3232
id: geo__state__location
3333
sourceColumn: geo__state__location
3434
sourceColumnDataType: STRING
35+
locale: en-US
36+
translations:
37+
- locale: cs-CZ
38+
sourceColumn: geo__state__location_cz
3539
tags:
3640
- Customers
3741
title: Location

0 commit comments

Comments
 (0)