Skip to content

Conversation

@blesniewski
Copy link
Contributor

Summary

Adds connection test to MongoDB destination plugin

@blesniewski blesniewski requested review from a team and murarustefaan and removed request for a team July 11, 2024 14:20
@blesniewski
Copy link
Contributor Author

❯ cloudquery test-connection pg-mongo
Loading spec(s) from pg-mongo
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  mongodb (grpc@127.0.0.1:7777)              Success
❯ cloudquery test-connection pg-mongo
Loading spec(s) from pg-mongo
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  mongodb (grpc@127.0.0.1:7777)              Failure: INVALID_SPEC    invalid spec
database is required
Error: at least one test connection failed
❯ cloudquery test-connection pg-mongo
Loading spec(s) from pg-mongo
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  mongodb (grpc@127.0.0.1:7777)              Failure: INVALID_SPEC    invalid spec
json: cannot unmarshal number into Go struct field Spec.Database of type string
Error: at least one test connection failed
❯ cloudquery test-connection pg-mongo
Loading spec(s) from pg-mongo
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  mongodb (grpc@127.0.0.1:7777)              Failure: UNREACHABLE     server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27, Type: Unknown, Last error: dial tcp [::1]:27: connect: connection refused }, ] }
Error: at least one test connection failed
❯ cloudquery test-connection pg-mongo
Loading spec(s) from pg-mongo
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  mongodb (grpc@127.0.0.1:7777)              Failure: UNAUTHORIZED    connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Error: at least one test connection failed
❯ cloudquery test-connection pg-mongo
Loading spec(s) from pg-mongo
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  mongodb (grpc@127.0.0.1:7777)              Failure: UNREACHABLE     server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: localhost:27017, Type: Unknown, Last error: dial tcp [::1]:27017: connect: connection refused }, ] }
Error: at least one test connection failed

@blesniewski blesniewski added the automerge Automatically merge once required checks pass label Jul 12, 2024
@kodiakhq kodiakhq bot merged commit a21a4b7 into main Jul 12, 2024
@kodiakhq kodiakhq bot deleted the feat/mongodb-destination-connection-test branch July 12, 2024 08:08
kodiakhq bot pushed a commit that referenced this pull request Jul 16, 2024
🤖 I have created a release *beep* *boop*
---


## [2.5.0](plugins-destination-mongodb-v2.4.4...plugins-destination-mongodb-v2.5.0) (2024-07-16)


### Features

* Add ElasticSearch destination connection test ([#18560](#18560)) ([95e656e](95e656e))
* Add MongoDB destination connection test ([#18554](#18554)) ([a21a4b7](a21a4b7))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.3 ([#18513](#18513)) ([d12da90](d12da90))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/destination/mongodb automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants