Skip to content

Commit

Permalink
✨Source RD Station Marketing: migrate to low-code (#40216)
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloescoder authored Jun 27, 2024
1 parent 9b19d90 commit ccb2309
Show file tree
Hide file tree
Showing 34 changed files with 1,438 additions and 1,030 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See `sample_files/sample_config.json` for a sample config file.
poetry run source-rd-station-marketing spec
poetry run source-rd-station-marketing check --config secrets/config.json
poetry run source-rd-station-marketing discover --config secrets/config.json
poetry run source-rd-station-marketing read --config secrets/config.json --catalog sample_files/configured_catalog.json
poetry run source-rd-station-marketing read --config secrets/config.json --catalog integration_tests/configured_catalog.json
```

### Running unit tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
# See [Connector Acceptance Tests](https://docs.airbyte.io/connector-development/testing-connectors/connector-acceptance-tests-reference)
# for more information about how to configure these tests
connector_image: airbyte/source-rd-station-marketing:dev
tests:
acceptance_tests:
spec:
- spec_path: "source_rd_station_marketing/spec.json"
tests:
- spec_path: "source_rd_station_marketing/spec.yaml"
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"
tests:
- config_path: "secrets/config.json"
basic_read:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
empty_streams: []
timeout_seconds: 3600
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
empty_streams:
- name: analytics_conversions
bypass_reason: "Trial account doesn't have access to this stream (Gives a 401 FORBIDDEN Error)"
- name: analytic_emails
bypass_reason: "Trial account doesn't have access to this stream (Gives a 401 FORBIDDEN Error)"
- name: analytics_funnel
bypass_reason: "Trial account doesn't have access to this stream (Gives a 401 FORBIDDEN Error)"
- name: analytics_workflow_emails_statistics
bypass_reason: "Trial account doesn't have access to this stream (Gives a 401 FORBIDDEN Error)"
- name: embeddables
bypass_reason: "No data in trial account for this stream"
- name: popups
bypass_reason: "No data in trial account for this stream"
- name: workflows
bypass_reason: "No data in trial account for this stream"
timeout_seconds: 3600
full_refresh:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
timeout_seconds: 3600
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
timeout_seconds: 3600
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
#
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
#


Expand Down
Original file line number Diff line number Diff line change
@@ -1,37 +1,122 @@
{
"streams": [
{
"stream": {
"name": "analytics_conversions",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["asset_updated_at"],
"source_defined_primary_key": [["asset_id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "analytic_emails",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["send_at"],
"source_defined_primary_key": [["campaign_id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "analytics_funnel",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["reference_day"],
"source_defined_primary_key": [["reference_day"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "analytics_workflow_emails_statistics",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["workflow_id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "emails",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": true,
"default_cursor_field": ["update_time"]
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "embeddables",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "fields",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["uuid"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "landing_pages",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": true,
"default_cursor_field": ["update_time"]
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "popups",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "segmentations",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": true,
"default_cursor_field": ["update_time"]
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "workflows",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
#

from source_rd_station_marketing.run import run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: fb141f29-be2a-450b-a4f2-2cd203a00f84
dockerImageTag: 0.1.9
dockerImageTag: 0.2.0
dockerRepository: airbyte/source-rd-station-marketing
githubIssueLabel: source-rd-station-marketing
icon: rdstation.svg
Expand All @@ -21,24 +21,20 @@ data:
documentationUrl: https://docs.airbyte.com/integrations/sources/rd-station-marketing
tags:
- language:python
- cdk:python
- cdk:low-code
ab_internal:
sl: 100
ql: 100
supportLevel: community
# Disabling acceptance tests for now
# They are not passing
# No Airbyte Cloud usage
#
# connectorTestSuitesOptions:
# - suite: unitTests
# - suite: acceptanceTests
# testSecrets:
# - name: SECRET_SOURCE-RD-STATION-MARKETING__CREDS
# fileName: config.json
# secretStore:
# type: GSM
# alias: airbyte-connector-testing-secret-store
connectorTestSuitesOptions:
- suite: unitTests
- suite: acceptanceTests
testSecrets:
- name: SECRET_SOURCE-RD-STATION-MARKETING__CREDS
fileName: config.json
secretStore:
type: GSM
alias: airbyte-connector-testing-secret-store
connectorBuildOptions:
baseImage: docker.io/airbyte/python-connector-base:1.2.2@sha256:57703de3b4c4204bd68a7b13c9300f8e03c0189bffddaffc796f1da25d2dbea0
metadataSpecVersion: "1.0"

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "0.1.9"
version = "0.2.0"
name = "source-rd-station-marketing"
description = "Source implementation for RD Station Marketing."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
#


Expand Down
Loading

0 comments on commit ccb2309

Please sign in to comment.