Skip to content

Commit 073bbbc

Browse files
fix: integration tests are failing for tiktok-marketing (#13127)
* fix: integration tests are failing for tiktok-marketing * fix: integration tests are failing for tiktok-marketing * chore: publish new version * chore: update seed file
1 parent d76ed67 commit 073bbbc

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@
914914
- name: TikTok Marketing
915915
sourceDefinitionId: 4bfac00d-ce15-44ff-95b9-9e3c3e8fbd35
916916
dockerRepository: airbyte/source-tiktok-marketing
917-
dockerImageTag: 0.1.11
917+
dockerImageTag: 0.1.12
918918
documentationUrl: https://docs.airbyte.io/integrations/sources/tiktok-marketing
919919
icon: tiktok.svg
920920
sourceType: api

airbyte-config/init/src/main/resources/seed/source_specs.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8767,7 +8767,7 @@
87678767
supportsNormalization: false
87688768
supportsDBT: false
87698769
supported_destination_sync_modes: []
8770-
- dockerImage: "airbyte/source-tiktok-marketing:0.1.11"
8770+
- dockerImage: "airbyte/source-tiktok-marketing:0.1.12"
87718771
spec:
87728772
documentationUrl: "https://docs.airbyte.io/integrations/sources/tiktok-marketing"
87738773
changelogUrl: "https://docs.airbyte.io/integrations/sources/tiktok-marketing"
@@ -8857,7 +8857,6 @@
88578857
\ incremental streams, in the format YYYY-MM-DD. All data generated between\
88588858
\ start_date and this date will be replicated. Not setting this option\
88598859
\ will result in always syncing the data till the current date."
8860-
default: "2022-05-23"
88618860
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
88628861
order: 3
88638862
type: "string"

airbyte-integrations/connectors/source-tiktok-marketing/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ COPY source_tiktok_marketing ./source_tiktok_marketing
3232
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
3333
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
3434

35-
LABEL io.airbyte.version=0.1.11
35+
LABEL io.airbyte.version=0.1.12
3636
LABEL io.airbyte.name=airbyte/source-tiktok-marketing

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

+8-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
"end_date": {
8989
"title": "End Date",
9090
"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.",
91-
"default": "2022-05-23",
9291
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
9392
"order": 3,
9493
"type": "string"
@@ -122,8 +121,14 @@
122121
"title": "CompleteOauthServerInputSpecification",
123122
"type": "object",
124123
"properties": {
125-
"app_id": { "title": "App Id", "type": "string" },
126-
"secret": { "title": "Secret", "type": "string" }
124+
"app_id": {
125+
"title": "App Id",
126+
"type": "string"
127+
},
128+
"secret": {
129+
"title": "Secret",
130+
"type": "string"
131+
}
127132
},
128133
"required": ["app_id", "secret"]
129134
},

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from jsonschema import RefResolver
1111
from pydantic import BaseModel, Field
1212

13-
from .streams import DEFAULT_END_DATE, DEFAULT_START_DATE, ReportGranularity
13+
from .streams import DEFAULT_START_DATE, ReportGranularity
1414

1515

1616
class OauthCredSpec(BaseModel):
@@ -63,8 +63,8 @@ class Config:
6363
)
6464

6565
end_date: str = Field(
66+
None,
6667
title="End Date",
67-
default=DEFAULT_END_DATE,
6868
pattern="^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
6969
description=(
7070
"The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. "

docs/integrations/sources/tiktok-marketing.md

+1
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ The connector is restricted by [requests limitation](https://ads.tiktok.com/mark
524524

525525
| Version | Date | Pull Request | Subject |
526526
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------|
527+
| 0.1.12 | 2022-05-24 | [13127](https://github.com/airbytehq/airbyte/pull/13127) | Fixed integration test |
527528
| 0.1.11 | 2022-04-27 | [12838](https://github.com/airbytehq/airbyte/pull/12838) | Added end date configuration for tiktok |
528529
| 0.1.10 | 2022-05-07 | [12545](https://github.com/airbytehq/airbyte/pull/12545) | Removed odd production authenication method |
529530
| 0.1.9 | 2022-04-30 | [12500](https://github.com/airbytehq/airbyte/pull/12500) | Improve input configuration copy |

0 commit comments

Comments
 (0)