Skip to content

Commit 3f01fc9

Browse files
committed
add test for empty data
1 parent c3c822b commit 3f01fc9

5 files changed

Lines changed: 57 additions & 0 deletions

File tree

tests/functional/download-empty-data/expected/data/out/files/.gitkeep

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"properties/403517979","Website - GA4","accounts/128209249","Keboola Website"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"destination":"in.c-keboola-ex-google-analytics-v4-01k6mq8atddf0xbr48p2b9st4h.properties","incremental":true,"columns":["propertyKey","propertyName","accountKey","accountName"],"primary_key":["propertyKey"],"column_metadata":{"propertyKey":[{"key":"KBC.datatype.nullable","value":true},{"key":"KBC.datatype.basetype","value":"STRING"}],"propertyName":[{"key":"KBC.datatype.nullable","value":true},{"key":"KBC.datatype.basetype","value":"STRING"}],"accountKey":[{"key":"KBC.datatype.nullable","value":true},{"key":"KBC.datatype.basetype","value":"STRING"}],"accountName":[{"key":"KBC.datatype.nullable","value":true},{"key":"KBC.datatype.basetype","value":"STRING"}]}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"metric":"API Calls","value":1}]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"authorization": {
3+
"oauth_api": {
4+
"credentials": {
5+
"appKey": "%env(string:CLIENT_ID)%",
6+
"#appSecret": "%env(string:CLIENT_SECRET)%",
7+
"#data": "%env(string:CREDENTIALS_DATA)%"
8+
}
9+
}
10+
},
11+
"parameters": {
12+
"outputTable": "empty-data",
13+
"query": {
14+
"metrics": [
15+
{
16+
"name": "active1DayUsers"
17+
},
18+
{
19+
"name": "active28DayUsers"
20+
}
21+
],
22+
"dimensions": [
23+
{
24+
"name": "campaignId"
25+
},
26+
{
27+
"name": "campaignName"
28+
},
29+
{
30+
"name": "city"
31+
},
32+
{
33+
"name": "cityId"
34+
}
35+
],
36+
"dateRanges": [
37+
{
38+
"startDate": "2015-08-14",
39+
"endDate": "2015-08-15"
40+
}
41+
]
42+
},
43+
"endpoint": "data-api",
44+
"outputBucket": "in.c-keboola-ex-google-analytics-v4-01k6mq8atddf0xbr48p2b9st4h",
45+
"properties": [
46+
{
47+
"accountKey": "accounts/128209249",
48+
"accountName": "Keboola Website",
49+
"propertyKey": "properties/403517979",
50+
"propertyName": "Website - GA4"
51+
}
52+
]
53+
}
54+
}

0 commit comments

Comments
 (0)