1
0
mirror of synced 2025-12-25 02:09:19 -05:00
Files
airbyte/airbyte-integrations/connectors/source-plaid
Jared Rhizor b4793b2510 add AIRBYTE_ENTRYPOINT for kubernetes support (#3973)
* add AIRBYTE_ENTRYPOINT for kubernetes support

* bump versions

* bump version in seed

* Update generic template

* keep scaffold sources at 0.1.0

* add missing newline

* handle python base versions correctly

* re-bump mysql and postgres sources

* re-bump snowflake destination

* add skip tests option

* switch to running tests

* reverse conditional to make it safer

* fix publish to include the test running

* fix iterable version

* fix file generation

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
2021-06-09 13:01:45 -07:00
..
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00
2020-12-31 09:22:20 -08:00

Plaid Source

This is the repository for the JavaScript Template source connector, written in JavaScript. For information about how to use this connector within Airbyte, see the documentation.

Local development

Prerequisites

To iterate on this connector, make sure to complete this prerequisites section.

Build & Activate Virtual Environment

First, build the module by running the following from the airbyte project root directory:

./gradlew :airbyte-integrations:connectors:source-plaid:build

This will generate a virtualenv for this module in source-plaid/.venv. Make sure this venv is active in your development environment of choice. To activate the venv from the terminal, run:

cd airbyte-integrations/connectors/source-plaid # cd into the connector directory
source .venv/bin/activate

If you are in an IDE, follow your IDE's instructions to activate the virtualenv.

Create credentials

If you are a community contributor, follow the instructions in the documentation to generate the necessary credentials. Then create a file secrets/config.json conforming to the source_javascript_template/spec.json file. See sample_files/sample_config.json for a sample config file.

If you are an Airbyte core member, copy the credentials in RPass under the secret name source-plaid-integration-test-config and place them into secrets/config.json.

Locally running the connector

npm install
node source.js spec
node source.js check --config secrets/config.json
node source.js discover --config secrets/config.json
node source.js read --config secrets/config.json --catalog sample_files/configured_catalog.json

Unit Tests (wip)

To run unit tests locally, from the connector directory run:

npm test

Locally running the connector docker image

# in airbyte root directory
./gradlew :airbyte-integrations:connectors:source-plaid:airbyteDocker
docker run --rm airbyte/source-plaid:dev spec
docker run --rm -v $(pwd)/airbyte-integrations/connectors/source-plaid/secrets:/secrets airbyte/source-plaid:dev check --config /secrets/config.json
docker run --rm -v $(pwd)/airbyte-integrations/connectors/source-plaid/secrets:/secrets airbyte/source-plaid:dev discover --config /secrets/config.json
docker run --rm -v $(pwd)/airbyte-integrations/connectors/source-plaid/secrets:/secrets -v $(pwd)/airbyte-integrations/connectors/source-plaid/sample_files:/sample_files airbyte/source-plaid:dev read --config /secrets/config.json --catalog /sample_files/fullrefresh_configured_catalog.json

Integration Tests

  1. From the airbyte project root, run ./gradlew :airbyte-integrations:connectors:source-plaid:integrationTest to run the standard integration test suite.
  2. To run additional integration tests, place your integration tests in a new directory integration_tests and run them with node test (wip).

Dependency Management

All of your dependencies should go in package.json.