-
Notifications
You must be signed in to change notification settings - Fork 4.6k
🎉 Source Zendesk: Migration from Singer to CDK #4861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 166 commits
Commits
Show all changes
174 commits
Select commit
Hold shift + click to select a range
ab16590
init the new connector source-zendesk-support
gl-pix aeb73d6
Finished a development of ZenDesk streams
gl-pix 964382d
Source ZenDesk: finished
gl-pix 7ed6cb2
Source ZenDesk: remove unused test files
gl-pix 46aeb90
Merge branch 'master' of github.com:airbytehq/airbyte into antixar/44…
gl-pix 62c2cd4
Source ZenDesk: format and validate code
gl-pix 001be7f
Merge branch 'master' of github.com:airbytehq/airbyte into antixar/44…
gl-pix d148beb
Source Zendesk: update docs
gl-pix f7bd7d6
Remove unused files
gl-pix 4d19040
add a stream_slices logic for ticket_comments stream
gl-pix f02d74a
🎉 Python CDK: Allow setting network adapter args on outgoing HTTP req…
sherifnada a9ae0eb
🎉 Destination S3: support `anyOf` `allOf` and `oneOf` (#4613)
tuliren 1cdf2aa
SAT: verify `AIRBYTE_ENTRYPOINT` is defined (#4478)
vovavovavovavova 198f4db
Migrate Quickstart to use PokeAPI (#4615)
avaidyanatha 6704488
Left isn't right (#4616)
avaidyanatha abae392
Create on on-oci-vm.md (#4468)
shadabshaukat dcefea5
🐛 platform: Fix silent failures in sources (#4617)
sherifnada 8c471ba
add oracle dpeloyment guide to summary.md (#4619)
sherifnada fad4b75
Mailchimp fix url-base (#4621)
vovavovavovavova 83e26b0
🎉 New Source: Paypal Transaction (#4240)
midavadim f63066a
set db version after full import is complete (#4626)
subodh1810 95c8c05
Fix docs formatting
sherifnada dfcd1e1
Redirect old link to upgrading tutorial (#4635)
avaidyanatha a96bbad
Fix broken link in SUMMARY.md
sherifnada 8d27adf
Airflow Demo: Remove superset in down.sh (#4638)
avaidyanatha 00ffe20
Airflow demo: Clean up scripts and more clearly describe actions (#4639)
avaidyanatha 52593f7
:tada: Add documentation for configuring Kube GCS logging. (#4622)
davinchia c7c26a0
Bump version: 0.27.0-alpha → 0.27.1-alpha (#4640)
davinchia 8c96b5d
0.27.1 Platform Patch Notes (#4644)
avaidyanatha 47fe87c
🎉 New Source: Zendesk Sunshine (#4359)
vovavovavovavova 8d949bb
0.27.1 Connector Patch Notes (#4646)
avaidyanatha 3dfe5cb
Update connector certification table. (#4647)
avaidyanatha 80c3dcd
:bug: Stub out the GCP Env Var in Docker to prevent noisy and harmles…
davinchia 19c03de
Add hint to Airflow guide about local example (#4656)
avaidyanatha 86f05e4
fix version for kube automatic migration support (#4649)
subodh1810 f1304fa
format zendesk sunshine connector (#4658)
subodh1810 9d3dd2f
🎉 New source: Dixa (#4358)
olivermeyer bb0f808
Turn on MYSQL normalization flag. (#4651)
davinchia d7eafe5
Combine admin and settings (#4525)
jamakase 61d597d
Job history purging (#4575)
airbyte-jenny 551038b
0.27.1 Announcement Summary (#4678)
avaidyanatha f19f5d7
🐛 Source Sendgrid: add start_time config and correct primary_key (#4682)
marcosmarxm fa2ea50
test to show how automatic migration handles deprecated definitions (…
subodh1810 5a8b185
Source dixa: fix unit tests (#4690)
olivermeyer 6bf9028
introduce common abstraction for CDC via debezium (#4580)
subodh1810 c59c1da
Source Dixa: Pin tz in ConversationExport.ms_timestamp_to_datetime (#…
olivermeyer c074c8e
Source Dixa: add to connector index (#4701)
sherifnada 9e1575a
allow injecting filters for server (#4677)
jrhizor 4b03782
upgrade postgres version for new cdc abstraction (#4702)
subodh1810 4cefe23
Fix dependencies for Superset demo (#4705)
avaidyanatha eacd887
📚 add SSH instructions for OCI VM setup (#4684)
shadabshaukat c085949
upgrade mysql version for new cdc abstraction (#4703)
subodh1810 0ca57e8
Update with ALTER TABLE statements (#4707)
avaidyanatha 0150c03
remove unused deps (#4512)
cgardens af1b9d5
fix config init race condition (#4679)
jrhizor 8ac0588
🐛 Destination S3: fix minio output for parquet format
varunbpatil 2875270
Bump destination s3 version (#4718)
tuliren 8e11a09
Fix scheduler race condition. (#4691)
davinchia d845536
Periodic connector tests workflow: add `Accept` header per github doc…
sherifnada 36d85e8
allow launching integration tests from workflow dispatch (#4723)
sherifnada 98eb547
Bump version: 0.27.1-alpha → 0.27.2-alpha (#4724)
davinchia 44f07ca
🐛 Source Square: Update _send_request method due to changes in Airbyt…
TymoshokDmytro 9441ff9
🎉 Destination Snowflake: tag snowflake traffic with airbyte ID to ena…
sherifnada 710ab30
🎉 New source: Typeform (#4541)
yaroslav-dudar df01bb1
Upgrade postgres and redshift destination to remove basic_normalizati…
subodh1810 0b17e6b
fix broken assertions for automatic migration tests (#4732)
subodh1810 af9db0b
Slightly improve sed-based yaml parsing (#4721)
bkrausz a5bc4a9
throw exception if we close engine before snapshot is complete + incr…
subodh1810 fad9432
allow publishing airbyte-server to local maven repo (#4717)
jrhizor 9284b13
CDK: Add initial Destination abstraction and tests (#4719)
sherifnada 460b63a
Update docs on GitHub connector now that its Airbyte native (#4739)
avaidyanatha b3f25ef
Remove statement about Postgres connector being based on Singer (#4740)
avaidyanatha 2074c61
fix flaky migration acceptance test (#4743)
subodh1810 9f98d42
upgrade fabric8 client (#4738)
jrhizor 81467bb
🎉 Source MSSQL: implementation for CDC (#4689)
subodh1810 ab140b1
bump up MSSQL version for cdc (#4694)
subodh1810 2f31260
fixed broken links and styling (#4747)
Phlair e933641
Fix enabling connection in refresh catalog mode (#4527)
jamakase 6bf15bf
Do not update deprecated connectors (#4674)
jamakase 3383d2b
🐛 Source Slack: add float_ts field (#4683)
marcosmarxm 48ea0f8
copy docs to webapp docker image (#4522)
cgardens 5a9210a
use kube service user for pod sweeper (#4737)
jrhizor 15f980d
🐛 Source GitHub: fix bug with `IssueEvents` stream and add handling f…
Zirochkaa daf5fab
:bug: Fix some api-spec errors. (#4742)
davinchia 61889fa
Source PostHog: Use account information for checking the connection (…
vovavovavovavova da173b1
SAT: Improve error message when data mismatches schema (#4753)
keu 029a5f4
increase sleep duration + show logs in CI (#4756)
subodh1810 45efe29
Fixed cockroachdb repo image (#4758)
etsybaev dc8ed7e
Bump version: 0.27.2-alpha → 0.27.3-alpha (#4761)
davinchia 3142732
update kube docs (#4749)
jrhizor 778818f
fix kube overlay version (#4765)
jrhizor 44c3b62
Split Platform and Connector Builds (#4514)
cgardens 5d77867
remove second docs check in build(#4766)
cgardens 48a3085
Restore template generator and fix formatting. (#4768)
cgardens bdebcdd
connector generate: fix chown logic (#4774)
sherifnada 0db91db
Remove example use cases from docs (#4775)
avaidyanatha 9644175
Update README.md
johnlafleur bc2be6d
🎉 All java connectors: Added configValidator to check, discover, read…
etsybaev d15a4f2
🎉 Stripe Source: Fix subscriptions stream to return all kinds of subs…
annalvova05 7f87b56
Add note about orphaned Airbyte configs preventing automatic upgrades…
avaidyanatha 9733df2
Patch 0.27.2 and 0.27.3 platform notes (#4792)
avaidyanatha 6b15f32
Connector notes for 0.27.3 (#4794)
avaidyanatha e2d4b4f
Add new logo to GitHub page (#4796)
avaidyanatha 9d7ab35
🎉 New Destination: Google Cloud Storage (#4784)
tuliren 104f940
🐛 CDK: Fix logging of initial state value (#4795)
keu 6eb98b2
bug fix: use register api (#4811)
cgardens d44d401
🐛 Add missing dependencies for acceptance tests to run. (#4808)
davinchia 3d33387
🎉 Add Python Destination Template (#4771)
sherifnada 4a2204c
Format. (#4814)
davinchia 9f3fcf2
🎉 Migrate config persistence to database (#4670)
tuliren 19e0ddf
🎉 Source intercom: migration to CDK (#4676)
lazebnyi 5658797
🎉 New source: Pipedrive connector (#4686)
htrueman b57a303
Make number of Concurrent Jobs configurable. (#4687)
davinchia 7a56b53
Explicitly pin ec2 runner version to 2.2.1. (#4823)
davinchia 2b077ec
🐛 Source Facebook: Improve rate limit management (#4820)
vladimir-remar 307b0f2
format and fix
eugene-kulak e413ed6
Source Facebook: fix formatting and publish new version (#4826)
keu 52953b6
Code generator: Update generator to chown docs and config definition …
TymoshokDmytro 89edad1
Python Demo Destination: KVDB (#4786)
sherifnada cdd3a7d
📚 CDK: Add python destination tutorial (#4800)
sherifnada d5ff70c
📚 Source Shopify: migrate to new sandbox, update API version to 2021-…
bazarnov 09baa5b
🐛 Source Instagram: Read previous state format and upgrade it (#4805)
keu 0ebb913
Add placeholder (#4816)
jamakase 8930074
Add update button (#4809)
jamakase fb739b0
Point to new location for connector build status history (#4840)
sherifnada a92554d
Update GAds docs to indicate incremental support
sherifnada 4eecba3
Add openreplay (#4685)
jamakase bc22519
🎉 Source mixpanel: migration to CDK (#4566)
midavadim 8ada997
Add openreplay variable (#4844)
jamakase 0cdb485
🐛 Sendgrid source: Gracefully handle malformed responses from sendgr…
sherifnada d96c781
Update job description (#4848)
johnlafleur 77d880c
Add py destination tutorial to summary.md (#4853)
sherifnada ff29d2f
Update CHANGELOG.md
sherifnada 37052be
🐛 Kube: Fix Source Ports not releasing. (#4822)
davinchia 6a8c9a0
use new AMI ID for connector builds (#4855)
sherifnada 31c8f9a
Wait for config volume to be ready (#4835)
tuliren 4065fa6
🎉 New source: US census (#4228)
dmateusp eccf1c0
publish US Census (connector) (#4857)
sherifnada 21b2e77
🐛 Source JIRA: Fix DBT failing normalization on `Labels` schema. (#4817)
bazarnov 6af1e5b
Rename founding-account-executive to founding-account-executive.md
johnlafleur 1ebc9ba
Tweak ConfigNotFoundException class (#4821)
ChristopheDuong feb3d3c
Source ZenDesk: format and validate code
gl-pix 43013b9
refactor import / export endpoints to use the same code path as auto …
cgardens 435b3f2
fix build (#4865)
cgardens 657b804
📝 Add server version requirement for mysql normalization (#4856)
tuliren aa62bac
🐛 Destination MySQL: fix problem if source has a column with json (#4…
etsybaev ed35fe5
hotfix: rename senior PM file to add .md
jrhizor ada4ddc
📚 improve mongo docs and param descriptions (#4870)
sherifnada 32a9e60
Remove duplicated seed repository (#4869)
tuliren 768aad0
add workspace helper (#4868)
jrhizor 09566d9
🐛 Fix Oracle spec to declare `sid` instead of `database` param, Redsh…
sherifnada 45fb8da
Kube: Better Port Abstraction. (#4829)
davinchia 88898e8
Source Zendesk: update docs
gl-pix 366d2c1
Remove unused files
gl-pix 4b4a5c0
add a stream_slices logic for ticket_comments stream
gl-pix 71c542e
Merge branch 'antixar/4422-source-zendesk-support' of github.com:airb…
gl-pix 382806f
Merge branch 'master' of github.com:airbytehq/airbyte into antixar/44…
gl-pix 76cad71
remove changes of other connections
gl-pix 5c72e3f
Merge branch 'master' of github.com:airbytehq/airbyte into antixar/44…
gl-pix 0f0c0a1
add secret Zendesk keys to command configs
gl-pix 2ac7666
:bug: Source Zendesk Support: add dummy unit test
gl-pix 25eab39
add dummy integration test
gl-pix e814042
fix Zendesk not loading username and facebook/twitter id #4373
gl-pix d0710ee
sort streams alphabetically
gl-pix 7fd842b
fix test issue with the unsupport field validate_output_from_all_streams
gl-pix bb22bee
add info to source_definitions.yaml
gl-pix 28e899a
remove json_schema from configured_catalog.json
gl-pix bd75114
add backoff logic
gl-pix 41209e8
Merge remote-tracking branch 'origin/master' into antixar/4422-source…
gl-pix 324d7c9
add unit tests
gl-pix 4d9156f
Merge remote-tracking branch 'origin/master' into antixar/4422-source…
gl-pix d597161
move part of unit tests to integration tests
gl-pix b93620e
fix test dependencies
gl-pix 2a461a9
add a build status
gl-pix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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: 7 additions & 0 deletions
7
airbyte-integrations/connectors/source-zendesk-support/.dockerignore
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* | ||
!Dockerfile | ||
!Dockerfile.test | ||
!main.py | ||
!source_zendesk_support | ||
!setup.py | ||
!secrets |
25 changes: 25 additions & 0 deletions
25
airbyte-integrations/connectors/source-zendesk-support/Dockerfile
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM python:3.7.11-alpine3.14 as base | ||
FROM base as builder | ||
|
||
|
||
RUN apk --no-cache upgrade \ | ||
&& pip install --upgrade pip | ||
|
||
WORKDIR /airbyte/integration_code | ||
COPY setup.py ./ | ||
RUN pip install --prefix=/install . | ||
|
||
|
||
FROM base | ||
COPY --from=builder /install /usr/local | ||
|
||
WORKDIR /airbyte/integration_code | ||
COPY main.py ./ | ||
COPY source_zendesk_support ./source_zendesk_support | ||
|
||
|
||
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.name=airbyte/source-zendesk-support |
131 changes: 131 additions & 0 deletions
131
airbyte-integrations/connectors/source-zendesk-support/README.md
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# Source Zendesk Support Source | ||
|
||
This is the repository for the Source Zendesk Support source connector, written in Python. | ||
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/source-zendesk-support). | ||
|
||
## Local development | ||
|
||
### Prerequisites | ||
**To iterate on this connector, make sure to complete this prerequisites section.** | ||
|
||
#### Minimum Python version required `= 3.7.0` | ||
|
||
#### Build & Activate Virtual Environment and install dependencies | ||
From this connector directory, create a virtual environment: | ||
``` | ||
python -m venv .venv | ||
``` | ||
|
||
This will generate a virtualenv for this module in `.venv/`. Make sure this venv is active in your | ||
development environment of choice. To activate it from the terminal, run: | ||
``` | ||
source .venv/bin/activate | ||
pip install -r requirements.txt | ||
``` | ||
If you are in an IDE, follow your IDE's instructions to activate the virtualenv. | ||
|
||
Note that while we are installing dependencies from `requirements.txt`, you should only edit `setup.py` for your dependencies. `requirements.txt` is | ||
used for editable installs (`pip install -e`) to pull in Python dependencies from the monorepo and will call `setup.py`. | ||
If this is mumbo jumbo to you, don't worry about it, just put your deps in `setup.py` but install using `pip install -r requirements.txt` and everything | ||
should work as you expect. | ||
|
||
#### Building via Gradle | ||
You can also build the connector in Gradle. This is typically used in CI and not needed for your development workflow. | ||
|
||
To build using Gradle, from the Airbyte repository root, run: | ||
``` | ||
./gradlew :airbyte-integrations:connectors:source-zendesk-support:build | ||
``` | ||
|
||
#### Create credentials | ||
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/source-zendesk-support) | ||
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_zendesk_support/spec.json` file. | ||
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information. | ||
See `integration_tests/sample_config.json` for a sample config file. | ||
|
||
**If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source source-zendesk-support test creds` | ||
and place them into `secrets/config.json`. | ||
|
||
### Locally running the connector | ||
``` | ||
python main.py spec | ||
python main.py check --config secrets/config.json | ||
python main.py discover --config secrets/config.json | ||
python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json | ||
``` | ||
|
||
### Locally running the connector docker image | ||
|
||
#### Build | ||
First, make sure you build the latest Docker image: | ||
``` | ||
docker build . -t airbyte/source-zendesk-support:dev | ||
``` | ||
|
||
You can also build the connector image via Gradle: | ||
``` | ||
./gradlew :airbyte-integrations:connectors:source-zendesk-support:airbyteDocker | ||
``` | ||
When building via Gradle, the docker image name and tag, respectively, are the values of the `io.airbyte.name` and `io.airbyte.version` `LABEL`s in | ||
the Dockerfile. | ||
|
||
#### Run | ||
Then run any of the connector commands as follows: | ||
``` | ||
docker run --rm airbyte/source-zendesk-support:dev spec | ||
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-zendesk-support:dev check --config /secrets/config.json | ||
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-zendesk-support:dev discover --config /secrets/config.json | ||
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-zendesk-support:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json | ||
``` | ||
## Testing | ||
Make sure to familiarize yourself with [pytest test discovery](https://docs.pytest.org/en/latest/goodpractices.html#test-discovery) to know how your test files and methods should be named. | ||
First install test dependencies into your virtual environment: | ||
``` | ||
pip install .[tests] | ||
``` | ||
### Unit Tests | ||
To run unit tests locally, from the connector directory run: | ||
``` | ||
python -m pytest unit_tests | ||
``` | ||
|
||
### Integration Tests | ||
There are two types of integration tests: Acceptance Tests (Airbyte's test suite for all source connectors) and custom integration tests (which are specific to this connector). | ||
#### Custom Integration tests | ||
Place custom tests inside `integration_tests/` folder, then, from the connector root, run | ||
``` | ||
python -m pytest integration_tests | ||
``` | ||
#### Acceptance Tests | ||
Customize `acceptance-test-config.yml` file to configure tests. See [Source Acceptance Tests](source-acceptance-tests.md) for more information. | ||
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py. | ||
To run your integration tests with acceptance tests, from the connector root, run | ||
``` | ||
python -m pytest integration_tests -p integration_tests.acceptance | ||
``` | ||
To run your integration tests with docker | ||
|
||
### Using gradle to run tests | ||
All commands should be run from airbyte project root. | ||
To run unit tests: | ||
``` | ||
./gradlew :airbyte-integrations:connectors:source-zendesk-support:unitTest | ||
``` | ||
To run acceptance and custom integration tests: | ||
``` | ||
./gradlew :airbyte-integrations:connectors:source-zendesk-support:integrationTest | ||
``` | ||
|
||
## Dependency Management | ||
All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development. | ||
We split dependencies between two groups, dependencies that are: | ||
* required for your connector to work need to go to `MAIN_REQUIREMENTS` list. | ||
* required for the testing need to go to `TEST_REQUIREMENTS` list | ||
|
||
### Publishing a new version of the connector | ||
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what? | ||
1. Make sure your changes are passing unit and integration tests. | ||
1. Bump the connector version in `Dockerfile` -- just increment the value of the `LABEL io.airbyte.version` appropriately (we use [SemVer](https://semver.org/)). | ||
1. Create a Pull Request. | ||
1. Pat yourself on the back for being an awesome contributor. | ||
1. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master. |
25 changes: 25 additions & 0 deletions
25
airbyte-integrations/connectors/source-zendesk-support/acceptance-test-config.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See [Source Acceptance Tests](https://docs.airbyte.io/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md) | ||
# for more information about how to configure these tests | ||
connector_image: airbyte/source-zendesk-support:dev | ||
tests: | ||
spec: | ||
- spec_path: "source_zendesk_support/spec.json" | ||
connection: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
incremental: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
antixar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cursor_paths: | ||
ticket_comments: ["created_at"] | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" |
10 changes: 10 additions & 0 deletions
10
airbyte-integrations/connectors/source-zendesk-support/acceptance-test-docker.sh
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env sh | ||
../../../../discover2catalog.sh main.py ./secrets/config.json ./integration_tests/configured_catalog.json | ||
docker build . -t airbyte/source-zendesk-support:dev | ||
antixar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
docker run --rm -it \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v /tmp:/tmp \ | ||
-v $(pwd):/test_input \ | ||
airbyte/source-acceptance-test \ | ||
--acceptance-test-config /test_input |
9 changes: 9 additions & 0 deletions
9
airbyte-integrations/connectors/source-zendesk-support/build.gradle
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
id 'airbyte-python' | ||
id 'airbyte-docker' | ||
id 'airbyte-source-acceptance-test' | ||
} | ||
|
||
airbytePython { | ||
moduleDirectory 'source_zendesk_support' | ||
} |
Empty file.
38 changes: 38 additions & 0 deletions
38
airbyte-integrations/connectors/source-zendesk-support/integration_tests/abnormal_state.json
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"users": { | ||
"updated_at": "2022-07-19T22:21:37Z" | ||
}, | ||
"groups": { | ||
"updated_at": "2022-07-15T22:19:01Z" | ||
}, | ||
"organizations": { | ||
"updated_at": "2022-07-15T19:29:14Z" | ||
}, | ||
"satisfaction_ratings": { | ||
"updated_at": "2022-07-20T10:05:18Z" | ||
}, | ||
"tickets": { | ||
"updated_at": "2022-07-19T22:21:26Z" | ||
}, | ||
"group_memberships": { | ||
"updated_at": "2022-04-23T15:34:20Z" | ||
}, | ||
"ticket_fields": { | ||
"updated_at": "2022-12-11T19:34:05Z" | ||
}, | ||
"ticket_forms": { | ||
"updated_at": "2022-12-11T20:34:37Z" | ||
}, | ||
"ticket_metrics": { | ||
"updated_at": "2022-07-19T22:21:26Z" | ||
}, | ||
"macros": { | ||
"updated_at": "2022-12-11T19:34:06Z" | ||
}, | ||
"ticket_comments": { | ||
"created_at": "2022-07-19T22:21:26Z" | ||
}, | ||
"ticket_audits": { | ||
"created_at": "2022-07-19T22:21:26Z" | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
airbyte-integrations/connectors/source-zendesk-support/integration_tests/acceptance.py
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
# MIT License | ||
# | ||
# Copyright (c) 2020 Airbyte | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
# | ||
|
||
|
||
import pytest | ||
|
||
pytest_plugins = ("source_acceptance_test.plugin",) | ||
|
||
|
||
@pytest.fixture(scope="session", autouse=True) | ||
def connector_setup(): | ||
""" This fixture is a placeholder for external resources that acceptance test might require.""" | ||
yield |
Empty file.
28 changes: 28 additions & 0 deletions
28
airbyte-integrations/connectors/source-zendesk-support/integration_tests/integration_test.py
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# MIT License | ||
# | ||
# Copyright (c) 2020 Airbyte | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
# | ||
|
||
|
||
def test_dummy_test(): | ||
"""This test added for successful passing customIntegrationTests""" | ||
pass |
6 changes: 6 additions & 0 deletions
6
airbyte-integrations/connectors/source-zendesk-support/integration_tests/invalid_config.json
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"email": "[email protected]", | ||
"api_token": "<broken token>", | ||
"subdomain": "test-failure-airbyte", | ||
"start_date": "2030-01-01T00:00:00Z" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.