-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from keboola/fix/user-data-mapping
Fix user data mapping, tests
- Loading branch information
Showing
6 changed files
with
150 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
36 changes: 36 additions & 0 deletions
36
python-sync-actions/tests/data_tests/test_007_infer_mapping_userdata/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"api": { | ||
"baseUrl": "http://private-834388-extractormock.apiary-mock.com", | ||
"pagination": { | ||
"method": "response.url", | ||
"urlKey": "next" | ||
} | ||
}, | ||
"config": { | ||
"outputBucket": "getPost", | ||
"jobs": [ | ||
{ | ||
"endpoint": "get", | ||
"method": "GET", | ||
"params": { | ||
"parameter": "value" | ||
} | ||
} | ||
], | ||
"userData": { | ||
"start_date": { | ||
"function": "date", | ||
"args": [ | ||
"Y-m-d H:i:s", | ||
{ | ||
"time": "currentStart" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"__SELECTED_JOB": "0" | ||
}, | ||
"action": "infer_mapping" | ||
} |
45 changes: 45 additions & 0 deletions
45
python-sync-actions/tests/data_tests/test_008_infer_mapping_userdata_child/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"api": { | ||
"baseUrl": "http://private-834388-extractormock.apiary-mock.com", | ||
"pagination": { | ||
"method": "response.url", | ||
"urlKey": "next" | ||
} | ||
}, | ||
"config": { | ||
"outputBucket": "getPost", | ||
"jobs": [ | ||
{ | ||
"endpoint": "get", | ||
"method": "GET", | ||
"params": { | ||
"parameter": "value" | ||
}, | ||
"children": [ | ||
{ | ||
"endpoint": "get", | ||
"method": "GET", | ||
"params": { | ||
"parameter": "value" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"userData": { | ||
"start_date": { | ||
"function": "date", | ||
"args": [ | ||
"Y-m-d H:i:s", | ||
{ | ||
"time": "currentStart" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"__SELECTED_JOB": "0_0" | ||
}, | ||
"action": "infer_mapping" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters