* Added milliseconds for date format for cursor * Added milliseconds for date format for cursor * Added milliseconds for date format for cursor * updated documentation
MongoDb Source
Documentation
This is the repository for the MongoDb source connector in Java. For information about how to use this connector within Airbyte, see User Documentation
Local development
Building via Gradle
From the Airbyte repository root, run:
./gradlew :airbyte-integrations:connectors:source-mongodb-v2:build
Locally running the connector docker image
Build
Build the connector image via Gradle:
./gradlew :airbyte-integrations:connectors:source-mongodb-v2:airbyteDocker
When building via Gradle, the docker image name and tag, respectively, are the values of the io.airbyte.name and io.airbyte.version LABELs in
the Dockerfile.
Testing
We use JUnit for Java tests.
Test Configuration
No specific configuration needed for testing Standalone MongoDb instance, MongoDb Test Container is used. In order to test the MongoDb Atlas or Replica set, you need to provide configuration parameters.
Community Contributor
As a community contributor, you will need to have an Atlas cluster to test MongoDb source.
- Create
secrets/credentials.jsonfile- Insert below json to the file with your configuration
{ "database": "database_name", "user": "user", "password": "password", "cluster_url": "cluster_url" }
- Insert below json to the file with your configuration
Airbyte Employee
- Access the
MONGODB_TEST_CREDSsecret on LastPass - Create a file with the contents at
secrets/credentials.json
Acceptance Tests
To run acceptance and custom integration tests:
./gradlew :airbyte-integrations:connectors:source-mongodb-v2:integrationTest