Skip to content

Commit ee0afdb

Browse files
fix: integration tests are failing for tiktok-marketing
1 parent bb7785e commit ee0afdb

File tree

2 files changed

+13
-48
lines changed
  • airbyte-integrations/connectors/source-tiktok-marketing

2 files changed

+13
-48
lines changed

airbyte-integrations/connectors/source-tiktok-marketing/integration_tests/spec.json

+12-47
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141
"type": "string"
4242
}
4343
},
44-
"required": [
45-
"app_id",
46-
"secret",
47-
"access_token"
48-
]
44+
"required": ["app_id", "secret", "access_token"]
4945
},
5046
{
5147
"title": "Sandbox Access Token",
@@ -69,10 +65,7 @@
6965
"type": "string"
7066
}
7167
},
72-
"required": [
73-
"advertiser_id",
74-
"access_token"
75-
]
68+
"required": ["advertiser_id", "access_token"]
7669
}
7770
]
7871
},
@@ -88,18 +81,14 @@
8881
"title": "Report Aggregation Granularity *",
8982
"description": "The granularity used for aggregating performance data in reports. See <a href=\"https://docs.airbyte.com/integrations/sources/tiktok-marketing/#report-aggregation\">the docs</a>.",
9083
"default": "DAY",
91-
"enum": [
92-
"LIFETIME",
93-
"DAY",
94-
"HOUR"
95-
],
84+
"enum": ["LIFETIME", "DAY", "HOUR"],
9685
"order": 2,
9786
"type": "string"
9887
},
9988
"end_date": {
10089
"title": "End Date",
10190
"description": "The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date.",
102-
"default": "2022-05-24",
91+
"default": "2022-09-01",
10392
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
10493
"order": 3,
10594
"type": "string"
@@ -109,18 +98,11 @@
10998
"supportsIncremental": true,
11099
"supportsNormalization": false,
111100
"supportsDBT": false,
112-
"supported_destination_sync_modes": [
113-
"overwrite",
114-
"append",
115-
"append_dedup"
116-
],
101+
"supported_destination_sync_modes": ["overwrite", "append", "append_dedup"],
117102
"authSpecification": null,
118103
"advanced_auth": {
119104
"auth_flow_type": "oauth2.0",
120-
"predicate_key": [
121-
"credentials",
122-
"auth_type"
123-
],
105+
"predicate_key": ["credentials", "auth_type"],
124106
"predicate_value": "oauth2.0",
125107
"oauth_config_specification": {
126108
"oauth_user_input_from_connector_config_specification": null,
@@ -130,16 +112,11 @@
130112
"properties": {
131113
"access_token": {
132114
"title": "Access Token",
133-
"path_in_connector_config": [
134-
"credentials",
135-
"access_token"
136-
],
115+
"path_in_connector_config": ["credentials", "access_token"],
137116
"type": "string"
138117
}
139118
},
140-
"required": [
141-
"access_token"
142-
]
119+
"required": ["access_token"]
143120
},
144121
"complete_oauth_server_input_specification": {
145122
"title": "CompleteOauthServerInputSpecification",
@@ -154,36 +131,24 @@
154131
"type": "string"
155132
}
156133
},
157-
"required": [
158-
"app_id",
159-
"secret"
160-
]
134+
"required": ["app_id", "secret"]
161135
},
162136
"complete_oauth_server_output_specification": {
163137
"title": "CompleteOauthServerOutputSpecification",
164138
"type": "object",
165139
"properties": {
166140
"app_id": {
167141
"title": "App Id",
168-
"path_in_connector_config": [
169-
"credentials",
170-
"app_id"
171-
],
142+
"path_in_connector_config": ["credentials", "app_id"],
172143
"type": "string"
173144
},
174145
"secret": {
175146
"title": "Secret",
176-
"path_in_connector_config": [
177-
"credentials",
178-
"secret"
179-
],
147+
"path_in_connector_config": ["credentials", "secret"],
180148
"type": "string"
181149
}
182150
},
183-
"required": [
184-
"app_id",
185-
"secret"
186-
]
151+
"required": ["app_id", "secret"]
187152
}
188153
}
189154
},

airbyte-integrations/connectors/source-tiktok-marketing/source_tiktok_marketing/streams.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# TikTok Initial release date is September 2016
2424
DEFAULT_START_DATE = "2016-09-01"
25-
DEFAULT_END_DATE = str(datetime.now().date())
25+
DEFAULT_END_DATE = "2022-09-01"
2626
NOT_AUDIENCE_METRICS = [
2727
"reach",
2828
"cost_per_1000_reached",

0 commit comments

Comments
 (0)