Skip to content

Commit

Permalink
Source Salesloft: certify to beta (#23937)
Browse files Browse the repository at this point in the history
* #19217 Source Salesloft: certify to beta

* #19217 source salesloft: update docs

* #19217 source salesloft: upd changelog

* #19217 source salesloft: upd expected records

* #19217 source salesloft: upd expected records

* #19217 source salesloft: upd expected records

* #19217 source salesloft: upd CAT config

* #19217 source salesloft: fix CAT config

* #19217 source salesloft: remove advanced_oauth

* Automated Change

* auto-bump connector version

---------

Co-authored-by: davydov-d <davydov-d@users.noreply.github.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
3 people authored and erohmensing committed Mar 22, 2023
1 parent 90770e4 commit 69d3d9c
Show file tree
Hide file tree
Showing 24 changed files with 1,290 additions and 367 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1738,11 +1738,14 @@
- name: SalesLoft
sourceDefinitionId: 41991d12-d4b5-439e-afd0-260a31d4c53f
dockerRepository: airbyte/source-salesloft
dockerImageTag: 0.1.6
dockerImageTag: 1.0.0
documentationUrl: https://docs.airbyte.com/integrations/sources/salesloft
icon: salesloft.svg
sourceType: api
releaseStage: alpha
allowedHosts:
hosts:
- "api.salesloft.com"
- name: Salesforce
sourceDefinitionId: b117307c-14b6-41aa-9422-947e34922962
dockerRepository: airbyte/source-salesforce
Expand Down
77 changes: 59 additions & 18 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13277,35 +13277,76 @@
- "overwrite"
- "append"
- "append_dedup"
- dockerImage: "airbyte/source-salesloft:0.1.6"
- dockerImage: "airbyte/source-salesloft:1.0.0"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/salesloft"
connectionSpecification:
$schema: "http://json-schema.org/draft-07/schema#"
title: "Source Salesloft Spec"
type: "object"
required:
- "client_id"
- "client_secret"
- "refresh_token"
- "credentials"
- "start_date"
additionalProperties: true
properties:
client_id:
type: "string"
title: "Client ID"
description: "The Client ID of your Salesloft developer application."
client_secret:
type: "string"
title: "Client Secret"
description: "The Client Secret of your Salesloft developer application."
airbyte_secret: true
refresh_token:
type: "string"
title: "Refresh Token"
description: "The token for obtaining a new access token."
airbyte_secret: true
credentials:
order: 0
type: "object"
title: "Credentials"
oneOf:
- title: "Authenticate via OAuth"
type: "object"
required:
- "client_id"
- "client_secret"
- "refresh_token"
- "access_token"
- "token_expiry_date"
- "auth_type"
properties:
auth_type:
type: "string"
const: "oauth2.0"
client_id:
type: "string"
title: "Client ID"
description: "The Client ID of your Salesloft developer application."
client_secret:
type: "string"
title: "Client Secret"
description: "The Client Secret of your Salesloft developer application."
airbyte_secret: true
access_token:
type: "string"
description: "Access Token for making authenticated requests."
airbyte_secret: true
token_expiry_date:
type: "string"
description: "The date-time when the access token should be refreshed."
format: "date-time"
refresh_token:
type: "string"
title: "Refresh Token"
description: "The token for obtaining a new access token."
airbyte_secret: true
- title: "Authenticate via API Key"
type: "object"
required:
- "api_key"
- "auth_type"
properties:
auth_type:
type: "string"
const: "api_key"
api_key:
type: "string"
airbyte_secret: true
title: "API Key"
description: "API Key for making authenticated requests. More instruction\
\ on how to find this value in our <a href=\"https://docs.airbyte.com/integrations/sources/salesloft#setup-guide\"\
>docs</a>"
start_date:
order: 1
type: "string"
title: "Start Date"
description: "The date from which you'd like to replicate data for Salesloft\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_salesloft ./source_salesloft
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.6
LABEL io.airbyte.version=1.0.0
LABEL io.airbyte.name=airbyte/source-salesloft
Original file line number Diff line number Diff line change
@@ -1,30 +1,49 @@
# 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-salesloft:dev
tests:
spec:
- spec_path: "source_salesloft/spec.json"
acceptance_tests:
basic_read:
tests:
- config_path: secrets/config.json
expect_records:
path: integration_tests/expected_records.jsonl
ignored_fields:
people:
- name: locale_utc_offset
bypass_reason: volatile data
users:
- name: locale_utc_offset
bypass_reason: volatile data
- config_path: secrets/config_oauth.json
expect_records:
path: integration_tests/expected_records.jsonl
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: secrets/config_oauth.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"
empty_streams: []
# TODO uncomment this block to specify that the tests should assert the connector outputs the records provided in the input file a file
# expect_records:
# path: "integration_tests/expected_records.jsonl"
# extra_fields: no
# exact_order: no
# extra_records: yes
incremental: # TODO if your connector does not implement incremental sync, remove this block
- 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
backward_compatibility_tests_config:
disable_for_version: "0.1.6"
- config_path: secrets/config_oauth.json
backward_compatibility_tests_config:
disable_for_version: "0.1.6"
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
incremental:
tests:
- config_path: secrets/config.json
configured_catalog_path: integration_tests/incremental_catalog.json
future_state:
future_state_path: integration_tests/abnormal_state.json
spec:
tests:
- spec_path: source_salesloft/spec.json
backward_compatibility_tests_config:
disable_for_version: "0.1.6"
connector_image: airbyte/source-salesloft:dev
test_strictness_level: high
Original file line number Diff line number Diff line change
@@ -1,6 +1,93 @@
{
"cadence_memberships": { "updated_at": "2040-11-16T00:00:00Z" },
"cadences": { "updated_at": "2040-02-16T00:00:00Z" },
"people": { "updated_at": "2040-04-16T00:00:00Z" },
"users": { "updated_at": "2040-06-16T00:00:00Z" }
}
[
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "cadence_memberships" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "cadences" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "people" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "emails" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "calls" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "accounts" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "actions" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "notes" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "successes" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "crm_activities" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "account_stages" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "team_templates" }
}
},
{
"type": "STREAM",
"stream": {
"stream_state": { "updated_at": "2122-01-18T21:18:20.000Z" },
"stream_descriptor": { "name": "email_templates" }
}
}
]
Loading

0 comments on commit 69d3d9c

Please sign in to comment.