1
0
mirror of synced 2026-01-05 21:02:13 -05:00
Files
airbyte/airbyte-integrations/connectors/source-mongodb-strict-encrypt/README.md
irynakruk 77fd7d9e34 Added Mongodb secure only source (#6859)
* Added mongodb secure source
2021-10-11 12:04:27 -04:00

1.5 KiB

MongoDb Source

Documentation

This is the repository for the MongoDb secure only 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-strict-encrypt:build

Locally running the connector docker image

Build

Build the connector image via Gradle:

./gradlew :airbyte-integrations:connectors:source-mongodb-strict-encrypt: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

Community Contributor

As a community contributor, you will need to have MongoDb instance to test MongoDb source.

  1. Create secrets/credentials.json file
    1. Insert below json to the file with your configuration
      {
        "database": "database_name",
        "user": "user",
        "password": "password",
        "host": "host",
        "port": "port"
      }
      

Airbyte Employee

  1. Access the MONGODB_TEST_CREDS secret on LastPass
  2. 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-strict-encrypt:integrationTest