You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce the mechanism to parametrize SATs with the dynamic values, e.g. content of the config.json, expected_records.txt files, or cursor_paths value
Motivation
Static parameters are not always enough to make SATs work. For example, Google Ads Source limits the age of the requested data to 90 days, so sooner or later tests will become outdated and will not pass. To make them work, the start_date parameter in the config.json file has always to be up to date, as well as expected_records.txt (contains records with the date field) and cursor_path which is impossible to define in the .yaml file (since it has a dynamic field in its structure: {"<customer_id>": {"segment.date": "<value>"}})
Implementation options
Pytest fixtures seem to be the best option:
parametrize input fixture with dependent fixtures like config, cursor_path, expected_records
add empty fixtures from above to a connector template in the CDK
The text was updated successfully, but these errors were encountered:
Goal
Introduce the mechanism to parametrize SATs with the dynamic values, e.g. content of the
config.json
,expected_records.txt
files, orcursor_paths
valueMotivation
Static parameters are not always enough to make SATs work. For example, Google Ads Source limits the age of the requested data to 90 days, so sooner or later tests will become outdated and will not pass. To make them work, the
start_date
parameter in theconfig.json
file has always to be up to date, as well asexpected_records.txt
(contains records with thedate
field) andcursor_path
which is impossible to define in the .yaml file (since it has a dynamic field in its structure:{"<customer_id>": {"segment.date": "<value>"}}
)Implementation options
Pytest fixtures seem to be the best option:
input
fixture with dependent fixtures likeconfig
,cursor_path
,expected_records
The text was updated successfully, but these errors were encountered: