Skip to content

Commit 32cc1a8

Browse files
committed
Add test for native types manifests
1 parent 5cbd7ac commit 32cc1a8

9 files changed

Lines changed: 70 additions & 1 deletion

File tree

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build image and run tests
2727
run: |
2828
docker build -t $APP_IMAGE .
29-
docker run -e CLIENT_ID -e CLIENT_SECRET -e ACCESS_TOKEN -e REFRESH_TOKEN -e VIEW_ID -e KBC_URL -e KBC_TOKEN -e KBC_COMPONENTID $APP_IMAGE composer ci
29+
docker run -e KBC_DATA_TYPE_SUPPORT=none -e CLIENT_ID -e CLIENT_SECRET -e ACCESS_TOKEN -e REFRESH_TOKEN -e VIEW_ID -e KBC_URL -e KBC_TOKEN -e KBC_COMPONENTID $APP_IMAGE composer ci
3030
- name: Push image to ECR
3131
run: |
3232
docker pull quay.io/keboola/developer-portal-cli-v2:latest

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
build:
55
context: .
66
environment:
7+
- KBC_DATA_TYPE_SUPPORT=none
78
- CLIENT_ID
89
- CLIENT_SECRET
910
- ACCESS_TOKEN

tests/functional/data-api-filter-metrics-native-types-manifest/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/255885884","users","accounts/185283969","Keboola"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"destination":"in.c-ex-google-analytics-cfg.properties","incremental":true,"schema":[{"nullable":true,"primary_key":true,"name":"propertyKey","data_type":{"base":{"type":"STRING"}}},{"nullable":true,"primary_key":false,"name":"propertyName","data_type":{"base":{"type":"STRING"}}},{"nullable":true,"primary_key":false,"name":"accountKey","data_type":{"base":{"type":"STRING"}}},{"nullable":true,"primary_key":false,"name":"accountName","data_type":{"base":{"type":"STRING"}}}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"eef4262bb69d17cacaf4d12d68ad8eb53e819cfc","255885884","2023-05-16","3","0"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"destination":"in.c-ex-google-analytics-cfg.users","incremental":true,"schema":[{"nullable":false,"primary_key":true,"name":"id","data_type":{"base":{"type":"STRING"}}},{"nullable":false,"primary_key":false,"name":"idProperty","data_type":{"base":{"type":"STRING"}}},{"nullable":false,"primary_key":false,"name":"date","data_type":{"base":{"type":"STRING"}}},{"nullable":false,"primary_key":false,"name":"totalUsers","data_type":{"base":{"type":"STRING"}}},{"nullable":false,"primary_key":false,"name":"itemViews","data_type":{"base":{"type":"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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
"outputBucket": "in.c-ex-google-analytics-cfg",
13+
"retriesCount": 1,
14+
"properties": [
15+
{
16+
"accountKey": "accounts/185283969",
17+
"accountName": "Keboola",
18+
"propertyKey": "properties/255885884",
19+
"propertyName": "users"
20+
}
21+
],
22+
"outputTable": "users",
23+
"endpoint": "data-api",
24+
"query": {
25+
"metrics": [
26+
{
27+
"name": "totalUsers"
28+
},
29+
{
30+
"name": "itemViews"
31+
}
32+
],
33+
"dimensions": [
34+
{
35+
"name": "date"
36+
}
37+
],
38+
"metricFilter": {
39+
"filter": {
40+
"fieldName": "totalUsers",
41+
"numericFilter": {
42+
"operation": "GREATER_THAN",
43+
"value": {
44+
"int64Value": "2"
45+
}
46+
}
47+
}
48+
},
49+
"filtersExpression": "",
50+
"dateRanges": [
51+
{
52+
"startDate": "2023-03-07",
53+
"endDate": "2023-06-06"
54+
}
55+
]
56+
}
57+
},
58+
"storage": {
59+
"output": {
60+
"data_type_support": "authoritative"
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)