Skip to content

Commit

Permalink
chore: auto-fix lint and format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
octavia-squidington-iii committed Oct 23, 2024
1 parent 38b06f0 commit faf77e5
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,37 @@ test_strictness_level: high
acceptance_tests:
spec:
tests:
- spec_path: "manifest.yaml"
- spec_path: "manifest.yaml"
connection:
tests:
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "secrets/config_oauth.json"
status: "succeed"
- config_path: "integration_tests/invalid_config.json"
status: "failed"
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "secrets/config_oauth.json"
status: "succeed"
- config_path: "integration_tests/invalid_config.json"
status: "failed"
discovery:
tests:
- config_path: "secrets/config_old.json"
- config_path: "secrets/config.json"
- config_path: "secrets/config_oauth.json"
- config_path: "secrets/config_old.json"
- config_path: "secrets/config.json"
- config_path: "secrets/config_oauth.json"
basic_read:
tests:
- config_path: "secrets/config.json"
expect_records:
path: "integration_tests/expected_records.jsonl"
- config_path: "secrets/config_oauth.json"
expect_records:
path: "integration_tests/expected_records.jsonl"
- config_path: "secrets/config.json"
expect_records:
path: "integration_tests/expected_records.jsonl"
- config_path: "secrets/config_oauth.json"
expect_records:
path: "integration_tests/expected_records.jsonl"
incremental:
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
future_state:
bypass_reason: "Unable to use 'future_state_path' because Zendesk Chat API
returns an error when specifying a date in the future."
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
future_state:
bypass_reason:
"Unable to use 'future_state_path' because Zendesk Chat API
returns an error when specifying a date in the future."
full_refresh:
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
35 changes: 6 additions & 29 deletions airbyte-integrations/connectors/source-zendesk-chat/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,21 @@
#


from dataclasses import dataclass
from typing import Any, List, Mapping
from dataclasses import InitVar, dataclass, field
from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Union

import pendulum
import requests
from airbyte_cdk.sources.declarative.extractors.record_extractor import RecordExtractor
from airbyte_cdk.sources.declarative.types import Record

from dataclasses import InitVar, dataclass, field
from typing import Any, Iterable, Mapping, Optional, Union

from airbyte_cdk.models import AirbyteLogMessage, AirbyteMessage, Level, Type
from airbyte_cdk.sources.declarative.extractors.record_extractor import RecordExtractor
from airbyte_cdk.sources.declarative.incremental import DatetimeBasedCursor
from airbyte_cdk.sources.declarative.incremental.declarative_cursor import DeclarativeCursor
from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString
from airbyte_cdk.sources.declarative.requesters.paginators.strategies import OffsetIncrement
from airbyte_cdk.sources.declarative.requesters.request_option import RequestOptionType
from airbyte_cdk.sources.declarative.types import Config, Record, StreamSlice, StreamState
from airbyte_cdk.sources.message import MessageRepository

from dataclasses import dataclass
from typing import Any, List, Mapping, Optional, Union

import requests
from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString
from airbyte_cdk.sources.declarative.requesters.paginators.strategies import OffsetIncrement

from dataclasses import dataclass
from typing import Any, List, Mapping, Optional, Union

import requests
from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString
from airbyte_cdk.sources.declarative.requesters.paginators.strategies import OffsetIncrement

from dataclasses import dataclass
from typing import Any, Mapping, MutableMapping, Optional, Union

from airbyte_cdk.sources.declarative.incremental import DatetimeBasedCursor
from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString
from airbyte_cdk.sources.declarative.types import Record, StreamSlice, StreamState


@dataclass
class ZendeskChatTimestampCursor(DatetimeBasedCursor):
Expand Down Expand Up @@ -88,6 +64,7 @@ def get_request_params(
)
return params


@dataclass
class ZendeskChatTimeOffsetIncrementPaginationStrategy(OffsetIncrement):
"""
Expand Down
59 changes: 29 additions & 30 deletions airbyte-integrations/connectors/source-zendesk-chat/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ data:
sl: 200
allowedHosts:
hosts:
- zopim.com
- zopim.com
connectorBuildOptions:
baseImage:
docker.io/airbyte/source-declarative-manifest:5.15.0@sha256:09a84e0622f36393077332faf11cc239e77083fae5fa500592c049dca25888a7
baseImage: docker.io/airbyte/source-declarative-manifest:5.15.0@sha256:09a84e0622f36393077332faf11cc239e77083fae5fa500592c049dca25888a7
connectorSubtype: api
connectorType: source
definitionId: 40d24d0f-b8f9-4fe0-9e6c-b06c0f3f45e4
Expand All @@ -31,32 +30,32 @@ data:
releaseStage: generally_available
supportLevel: certified
tags:
- language:manifest-only
- cdk:low-code
- language:manifest-only
- cdk:low-code
connectorTestSuitesOptions:
- suite: liveTests
testConnections:
- name: zendesk-chat_config_oauth_dev_null
id: 3801d70c-d197-4bc2-a989-c48888a47fb2
- name: zendesk-chat_config_old_dev_null
id: 39ac48ce-6b9d-4b1d-9b62-3fd899ae1981
- name: zendesk-chat_config_dev_null
id: 5f92e2b6-8d51-4517-8c9a-6a1a1b29cebe
- suite: acceptanceTests
testSecrets:
- name: SECRET_SOURCE_ZENDESK_CHAT_CREDS
fileName: config.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
- name: SECRET_SOURCE_ZENDESK_CHAT_OAUTH_CREDS
fileName: config_oauth.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
- name: SECRET_SOURCE_ZENDESK_CHAT_OLD_CREDS
fileName: config_old.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
- suite: liveTests
testConnections:
- name: zendesk-chat_config_oauth_dev_null
id: 3801d70c-d197-4bc2-a989-c48888a47fb2
- name: zendesk-chat_config_old_dev_null
id: 39ac48ce-6b9d-4b1d-9b62-3fd899ae1981
- name: zendesk-chat_config_dev_null
id: 5f92e2b6-8d51-4517-8c9a-6a1a1b29cebe
- suite: acceptanceTests
testSecrets:
- name: SECRET_SOURCE_ZENDESK_CHAT_CREDS
fileName: config.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
- name: SECRET_SOURCE_ZENDESK_CHAT_OAUTH_CREDS
fileName: config_oauth.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
- name: SECRET_SOURCE_ZENDESK_CHAT_OLD_CREDS
fileName: config_old.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
metadataSpecVersion: "1.0"

0 comments on commit faf77e5

Please sign in to comment.