-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 Source ZohoCRM - enable in cloud (#23906)
* Fixed authentication to support latest CDK, fixed SAT, updated expected record, enabled high strictness * updated docs and connector version * updated format of abnormal state * updated version is seed * merged * updated connector version * fixed SAT * fixed SAT * added empty streams * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
- Loading branch information
1 parent
f643ad1
commit 425185c
Showing
12 changed files
with
241 additions
and
283 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
38 changes: 8 additions & 30 deletions
38
airbyte-integrations/connectors/source-zoho-crm/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,38 +1,16 @@ | ||
FROM python:3.9.11-alpine3.15 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 build-base | ||
FROM python:3.9-slim | ||
|
||
# Bash is installed for more convenient debugging. | ||
RUN apt-get update && apt-get install -y bash && 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 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 source_zoho_crm ./source_zoho_crm | ||
COPY main.py ./ | ||
COPY setup.py ./ | ||
RUN pip install . | ||
|
||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" | ||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] | ||
|
||
LABEL io.airbyte.version=0.1.1 | ||
LABEL io.airbyte.name=airbyte/source-zoho-crm | ||
LABEL io.airbyte.version=0.1.2 | ||
LABEL io.airbyte.name=airbyte/source-zoho-crm |
67 changes: 43 additions & 24 deletions
67
airbyte-integrations/connectors/source-zoho-crm/acceptance-test-config.yml
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,33 +1,52 @@ | ||
# See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) | ||
# for more information about how to configure these tests | ||
connector_image: airbyte/source-zoho-crm:dev | ||
tests: | ||
test_strictness_level: "high" | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_zoho_crm/spec.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.0" | ||
tests: | ||
- spec_path: "source_zoho_crm/spec.json" | ||
connection: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.0" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: [] | ||
# expect_records: | ||
# path: "integration_tests/expected_records.jsonl" | ||
# extra_fields: yes | ||
# exact_order: yes | ||
# extra_records: no | ||
tests: | ||
- config_path: "secrets/config.json" | ||
expect_records: | ||
path: "integration_tests/expected_records.jsonl" | ||
extra_fields: no | ||
exact_order: no | ||
extra_records: yes | ||
ignored_fields: | ||
incremental_contacts_zoho_crm_stream: | ||
- name: Contact_Auto_Number | ||
bypass_reason: "depend on changing data" | ||
empty_streams: | ||
- name: incremental_notes_zoho_crm_stream | ||
bypass_reason: "no data" | ||
- name: incremental_deals_zoho_crm_stream | ||
bypass_reason: "no data" | ||
- name: incremental_accounts_zoho_crm_stream | ||
bypass_reason: "no data" | ||
- name: incremental_calls_zoho_crm_stream | ||
bypass_reason: "no data" | ||
incremental: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state: | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
ignored_fields: | ||
incremental_contacts_zoho_crm_stream: | ||
- name: Contact_Auto_Number | ||
bypass_reason: "depend on changing data" |
202 changes: 141 additions & 61 deletions
202
airbyte-integrations/connectors/source-zoho-crm/integration_tests/abnormal_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,62 +1,142 @@ | ||
{ | ||
"incremental_leads_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_notes_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_contacts_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_accounts_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_activities_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_tasks_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_calls_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_deals_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_events_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_vendors_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_products_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_quotes_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_sales__orders_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_purchase__orders_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_price__books_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_solutions_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_cases_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_invoices_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_attachments_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
}, | ||
"incremental_campaigns_zoho_crm_stream": { | ||
"Modified_Time": "2220-03-07T11:30:00+00:00" | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_leads_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_notes_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_contacts_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_accounts_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_activities_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_tasks_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_calls_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_deals_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_events_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_vendors_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_products_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_quotes_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_sales__orders_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_purchase__orders_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_price__books_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_solutions_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_cases_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_invoices_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_attachments_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { "name": "incremental_campaigns_zoho_crm_stream" }, | ||
"stream_state": { "Modified_Time": "2220-03-07T11:30:00+00:00"} | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.