Skip to content

Commit

Permalink
CAL-1149: update tests after PDM removal
Browse files Browse the repository at this point in the history
- address PDM removal in the tests
- update tests to work with composite keys and dashboard permissions
  • Loading branch information
pcerny committed Nov 29, 2023
1 parent 82d74e5 commit f66eaa9
Show file tree
Hide file tree
Showing 14 changed files with 311 additions and 114 deletions.
70 changes: 45 additions & 25 deletions gooddata-sdk/tests/catalog/expected/declarative_ldm.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"campaign_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "campaign_id",
"target": {
"id": "campaign_id",
"type": "attribute"
},
"dataType": "INT"
}
]
}
],
Expand Down Expand Up @@ -242,11 +246,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"campaign_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "campaign_id",
"target": {
"id": "campaign_id",
"type": "attribute"
},
"dataType": "INT"
}
]
},
{
Expand All @@ -255,11 +263,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"customer_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "customer_id",
"target": {
"id": "customer_id",
"type": "attribute"
},
"dataType": "INT"
}
]
},
{
Expand All @@ -268,11 +280,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"date"
],
"sourceColumnDataTypes": [
"DATE"
"sources": [
{
"column": "date",
"target": {
"id": "date",
"type": "date"
},
"dataType": "DATE"
}
]
},
{
Expand All @@ -281,11 +297,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"product_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "product_id",
"target": {
"id": "product_id",
"type": "attribute"
},
"dataType": "INT"
}
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"campaign_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "campaign_id",
"target": {
"id": "campaigns.campaign_id",
"type": "attribute"
},
"dataType": "INT"
}
]
}
],
Expand Down Expand Up @@ -242,11 +246,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"campaign_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "campaign_id",
"target": {
"id": "campaigns.campaign_id",
"type": "attribute"
},
"dataType": "INT"
}
]
},
{
Expand All @@ -255,11 +263,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"customer_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "customer_id",
"target": {
"id": "customers.customer_id",
"type": "attribute"
},
"dataType": "INT"
}
]
},
{
Expand All @@ -268,11 +280,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"date"
],
"sourceColumnDataTypes": [
"DATE"
"sources": [
{
"column": "date",
"target": {
"id": "date",
"type": "date"
},
"dataType": "DATE"
}
]
},
{
Expand All @@ -281,11 +297,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"product_id"
],
"sourceColumnDataTypes": [
"INT"
"sources": [
{
"column": "product_id",
"target": {
"id": "products.product_id",
"type": "attribute"
},
"dataType": "INT"
}
]
}
],
Expand Down Expand Up @@ -508,11 +528,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumns": [
"date"
],
"sourceColumnDataTypes": [
"DATE"
"sources": [
{
"column": "date",
"target": {
"id": "date",
"type": "date"
},
"dataType": "DATE"
}
]
}
],
Expand Down
92 changes: 66 additions & 26 deletions gooddata-sdk/tests/catalog/expected/declarative_workspaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
},
"version": "2"
},
"permissions": [
{
"assigneeRule": {
"type": "allWorkspaceUsers"
},
"name": "VIEW"
}
],
"description": "",
"id": "campaign",
"title": "Campaign"
Expand Down Expand Up @@ -2347,11 +2355,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumnDataTypes": [
"INT"
],
"sourceColumns": [
"campaign_id"
"sources": [
{
"column": "campaign_id",
"target": {
"id": "campaign_id",
"type": "attribute"
},
"dataType": "INT"
}
]
}
],
Expand Down Expand Up @@ -2573,11 +2585,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumnDataTypes": [
"INT"
],
"sourceColumns": [
"campaign_id"
"sources": [
{
"column": "campaign_id",
"target": {
"id": "campaign_id",
"type": "attribute"
},
"dataType": "INT"
}
]
},
{
Expand All @@ -2586,11 +2602,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumnDataTypes": [
"INT"
],
"sourceColumns": [
"customer_id"
"sources": [
{
"column": "customer_id",
"target": {
"id": "customer_id",
"type": "attribute"
},
"dataType": "INT"
}
]
},
{
Expand All @@ -2599,11 +2619,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumnDataTypes": [
"DATE"
],
"sourceColumns": [
"date"
"sources": [
{
"column": "date",
"target": {
"id": "date",
"type": "date"
},
"dataType": "DATE"
}
]
},
{
Expand All @@ -2612,11 +2636,15 @@
"type": "dataset"
},
"multivalue": false,
"sourceColumnDataTypes": [
"INT"
],
"sourceColumns": [
"product_id"
"sources": [
{
"column": "product_id",
"target": {
"id": "product_id",
"type": "attribute"
},
"dataType": "INT"
}
]
}
],
Expand Down Expand Up @@ -2765,7 +2793,19 @@
"id": "demo_west",
"model": {
"analytics": {
"analyticalDashboardExtensions": [],
"analyticalDashboardExtensions": [
{
"id": "campaign",
"permissions": [
{
"assigneeRule": {
"type": "allWorkspaceUsers"
},
"name": "VIEW"
}
]
}
],
"analyticalDashboards": [],
"dashboardPlugins": [],
"filterContexts": [],
Expand Down
Loading

0 comments on commit f66eaa9

Please sign in to comment.