-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃帀 Source Kustomer: Clarify setup fields (#8738)
* Deleted user-agent, date_window_size, page_size_limit from spec.json file * Deleted TODO rows * Updated version in docs * Updated to review * Updated PR number * Updated airbyte name in Docker * Added version for tap-kustomer * Added fixed version for tap-kustomer * Deleted version for tap-kustomer * workaround for all singer lib * Updated Docker file to new template * Updated link to singer repo * Add version to tap-kustomer * Specified tap-kustomer in requirements.txt * Commented source-acceptance-test dependences instalation * Fixed typo * Deleted source-acceptance-testfrom setup.py Co-authored-by: antixar <antixar@gmail.com>
- Loading branch information
Showing
9 changed files
with
101 additions
and
40 deletions.
There are no files selected for viewing
38 changes: 31 additions & 7 deletions
38
airbyte-integrations/connectors/source-kustomer-singer/Dockerfile
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 |
---|---|---|
@@ -1,16 +1,40 @@ | ||
FROM python:3.7-slim | ||
FROM python:3.7.11-alpine3.14 as base | ||
|
||
# build and load all requirements | ||
FROM base as builder | ||
WORKDIR /airbyte/integration_code | ||
|
||
# upgrade pip to the latest version | ||
RUN apk --no-cache upgrade \ | ||
&& pip install --upgrade pip \ | ||
&& apk --no-cache add tzdata \ | ||
&& apk --no-cache add git \ | ||
&& apk --no-cache add build-base | ||
|
||
# Bash is installed for more convenient debugging. | ||
RUN apt-get update && apt-get install -y bash && apt-get install -y gcc && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY setup.py ./ | ||
# install necessary packages to a temporary folder | ||
RUN pip install --prefix=/install . | ||
|
||
# build a clean environment | ||
FROM base | ||
WORKDIR /airbyte/integration_code | ||
COPY source_kustomer_singer ./source_kustomer_singer | ||
|
||
# copy all loaded and built libraries to a pure basic image | ||
COPY --from=builder /install /usr/local | ||
# add default timezone settings | ||
COPY --from=builder /usr/share/zoneinfo/Etc/UTC /etc/localtime | ||
RUN echo "Etc/UTC" > /etc/timezone | ||
|
||
# bash is installed for more convenient debugging. | ||
RUN apk --no-cache add bash | ||
|
||
# copy payload code only | ||
COPY main.py ./ | ||
COPY setup.py ./ | ||
RUN pip install . | ||
COPY source_kustomer_singer ./source_kustomer_singer | ||
|
||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" | ||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] | ||
|
||
LABEL io.airbyte.version=0.1.0 | ||
LABEL io.airbyte.version=0.1.1 | ||
LABEL io.airbyte.name=airbyte/source-kustomer |
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
7 changes: 2 additions & 5 deletions
7
airbyte-integrations/connectors/source-kustomer-singer/integration_tests/invalid_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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
{ | ||
"api_token": "api_token", | ||
"start_date": "2021-01-01T00:00:00Z", | ||
"user_agent": "tap-kustomer <test@test.com>", | ||
"date_window_size": "60", | ||
"page_size_limit": "100" | ||
"api_token": "invalid_api_token", | ||
"start_date": "0000-01-01T00:00:00Z" | ||
} |
12 changes: 10 additions & 2 deletions
12
airbyte-integrations/connectors/source-kustomer-singer/integration_tests/sample_state.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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
{ | ||
"todo-stream-name": { | ||
"todo-field-name": "value" | ||
"bookmarks": { | ||
"conversations": "2021-12-25T18:00:00Z", | ||
"customers": "2021-12-25T18:00:00Z", | ||
"kobjects": "2021-12-25T18:00:00Z", | ||
"messages": "2021-12-25T18:00:00Z", | ||
"notes": "2021-12-25T18:00:00Z", | ||
"shortcuts": "2021-12-25T18:00:00Z", | ||
"tags": "2021-12-25T18:00:00Z", | ||
"teams": "2021-12-25T18:00:00Z", | ||
"users": "2021-12-25T18:00:00Z" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
airbyte-integrations/connectors/source-kustomer-singer/requirements.txt
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# This file is autogenerated -- only edit if you know what you are doing. Use setup.py for declaring dependencies. | ||
-e ../../bases/source-acceptance-test | ||
# -e ../../bases/source-acceptance-test | ||
-e . |
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
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