Source Zendesk Support: added articles and sections streams #11960
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.
What
Added new Articles and Sections on Zendesk Support
How
source.py
streams.py
π¨ User Impact π¨
No impact expected
Pre-merge Checklist
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereTests
Unit
(.venv) 192-168-1-101:source-zendesk-support eric.hartono$ python -m pytest unit_tests
Test session starts (platform: darwin, Python 3.10.4, pytest 6.2.5, pytest-sugar 0.9.4)
cachedir: .pytest_cache
rootdir: /Users/eric.hartono/Projects/airbyte, configfile: pytest.ini
plugins: sugar-0.9.4, requests-mock-1.9.3, timeout-1.4.2
collecting ...
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_proper_number_of_future_requests_generated[1000-100-10] β 5% β
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_proper_number_of_future_requests_generated[1000-10-100] β 9% β
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_proper_number_of_future_requests_generated[0-100-0] β 14% ββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_proper_number_of_future_requests_generated[1-100-1] β 18% ββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_proper_number_of_future_requests_generated[101-100-2] β 23% βββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_parse_future_records[10-10-10] β 27% βββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_parse_future_records[10-100-10] β 32% ββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_parse_future_records[10-10-0] β 36% ββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_read_records[1000-100-10-True] β 41% βββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py::test_read_records[1000-10-100-True] β 45% βββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_str2datetime β 50% βββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_datetime2str β 55% ββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_str2unixtime β 59% ββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_check_start_time_param β 64% βββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_parse_next_page_number β 68% βββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_next_page_token β 73% ββββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_check_stream_state[state present] β 77% ββββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_check_stream_state[empty string in state] β 82% βββββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_check_stream_state[state is None] β 86% βββββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_check_stream_state[cursor is not in the state object] β 91% ββββββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_request_params β 95% ββββββββββ
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py::test_parse_response β 100% ββββββββββ
=============================================================================================================================== warnings summary ===============================================================================================================================
.venv/lib/python3.10/site-packages/airbyte_cdk/sources/utils/transform.py:12
/Users/eric.hartono/Projects/airbyte/airbyte-integrations/connectors/source-zendesk-support/.venv/lib/python3.10/site-packages/airbyte_cdk/sources/utils/transform.py:12: DeprecationWarning: Call to deprecated class AirbyteLogger. (Use logging.getLogger('airbyte') instead) -- Deprecated since version 0.1.47.
logger = AirbyteLogger()
.venv/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/rate_limiting.py:19
/Users/eric.hartono/Projects/airbyte/airbyte-integrations/connectors/source-zendesk-support/.venv/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/rate_limiting.py:19: DeprecationWarning: Call to deprecated class AirbyteLogger. (Use logging.getLogger('airbyte') instead) -- Deprecated since version 0.1.47.
logger = AirbyteLogger()
.venv/lib/python3.10/site-packages/airbyte_cdk/utils/event_timing.py:13
/Users/eric.hartono/Projects/airbyte/airbyte-integrations/connectors/source-zendesk-support/.venv/lib/python3.10/site-packages/airbyte_cdk/utils/event_timing.py:13: DeprecationWarning: Call to deprecated class AirbyteLogger. (Use logging.getLogger('airbyte') instead) -- Deprecated since version 0.1.47.
logger = AirbyteLogger()
.venv/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http.py:43: 1 warning
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py: 10 warnings
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py: 4 warnings
/Users/eric.hartono/Projects/airbyte/airbyte-integrations/connectors/source-zendesk-support/.venv/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http.py:43: DeprecationWarning: Call to deprecated class NoAuth. (Set
authenticator=None
instead) -- Deprecated since version 0.1.20.self._authenticator: HttpAuthenticator = NoAuth()
.venv/lib/python3.10/site-packages/deprecated/classic.py:173: 1 warning
airbyte-integrations/connectors/source-zendesk-support/unit_tests/test_futures.py: 10 warnings
airbyte-integrations/connectors/source-zendesk-support/unit_tests/unit_test.py: 4 warnings
/Users/eric.hartono/Projects/airbyte/airbyte-integrations/connectors/source-zendesk-support/.venv/lib/python3.10/site-packages/deprecated/classic.py:173: DeprecationWarning: Call to deprecated class HttpAuthenticator. (Use requests.auth.AuthBase instead) -- Deprecated since version 0.1.20.
return old_new1(cls, *args, **kwargs)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
Results (86.83s):
22 passed