airbyte-integrations/connectors/source-e2e-test-cloud/README.md
This is the Cloud variant of the E2E Test Source. It only allows the "continuous feed" mode a finite number of record messages. The two legacy modes ("infinite feed" and "exception after n") are excluded from cloud because 1) the catalog is not customized under those modes, and 2) the connector should not emit infinite records, which may result in high cost accidentally.
From the Airbyte repository root, run:
./gradlew :airbyte-integrations:connectors:source-e2e-test-cloud:build
No credential is needed for this connector.
Build the connector image via Gradle:
./gradlew :airbyte-integrations:connectors:source-e2e-test-cloud:buildConnectorImage
Once built, the docker image name and tag on your host will be airbyte/source-e2e-test-cloud:dev.
the Dockerfile.
Then run any of the connector commands as follows:
docker run --rm airbyte/source-e2e-test-cloud:dev spec
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-e2e-test-cloud:dev check --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-e2e-test-cloud:dev discover --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-e2e-test-cloud:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
The cloud version of this connector only allows the CONTINUOUS FEED mode. When this mode is changed, please make sure that the cloud variant is updated and published accordingly as well.
We use JUnit for Java tests.
Place unit tests under src/test/io/airbyte/integrations/sources/e2e-test.
Airbyte has a standard test suite that all destination connectors must pass. See example(s) in
src/test-integration/java/io/airbyte/integrations/sources/e2e-test/.
All commands should be run from airbyte project root. To run unit tests:
./gradlew :airbyte-integrations:connectors:sources-e2e-test:unitTest
To run acceptance and custom integration tests:
./gradlew :airbyte-integrations:connectors:sources-e2e-test:integrationTest
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
airbyte-ci connectors --name=source-e2e-test-cloud testmetadata.yaml: increment the dockerImageTag value. Please follow semantic versioning for connectors.metadata.yaml content is up to date.docs/integrations/sources/e2e-test.md).