You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
#Steps
Add a new project
-- Example: https://github.com/zio/zio-connect/blob/2507925dcd9acf5cb1dbb5e004afef3982ad6807/build.sbt#L38
Create the following directory structure
Create the connector
Provide accessors in the package object
Example: https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/main/scala/zio/connect/file/package.scala
Tests belong in the MongoConnectorSpec file.
They use the accessors.
Example:- https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/test/scala/zio/connect/file/MongoConnectorSpec.scala
There will be a LiveMongoConnectorSpec that runs the MongoConnectorSpec files for the LiveMongoConnector layer
You can use testcontainers - https://www.testcontainers.org/modules/databases/mongodb/
Example with testcontainers and localstack S3 here - https://github.com/zio/zio-connect/pull/83/files#diff-e7e0899e455a741a644a05c0b26879d176a9126951477cd7c62dc19ade98b5cc
Provide a TestMongoConnector layer that allows testing with a stub.
Example - https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/main/scala/zio/connect/file/TestMongoConnector.scala
The text was updated successfully, but these errors were encountered: