Skip to content

Conversation

@blesniewski
Copy link
Contributor

Summary

Adds connection test to ElasticSearch destination plugin
Also contains a small fix (which thankfully didn't cover any issues) to MongoDB destination connection test

@blesniewski blesniewski requested review from a team and savme and removed request for a team July 12, 2024 13:59
@blesniewski
Copy link
Contributor Author

blesniewski commented Jul 12, 2024

❯ cloudquery test-connection pg-elastic
Loading spec(s) from pg-elastic
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  elasticsearch (grpc@127.0.0.1:7777)        Failure: UNAUTHORIZED    unauthorized
status code is 401
Error: at least one test connection failed
❯ cloudquery test-connection pg-elastic
Loading spec(s) from pg-elastic
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  elasticsearch (grpc@127.0.0.1:7777)        Failure: UNREACHABLE     unreachable
an error happened during the Info query execution: dial tcp [::1]:9200: connect: connection refused
Error: at least one test connection failed
❯ cloudquery test-connection pg-elastic
Loading spec(s) from pg-elastic
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  elasticsearch (grpc@127.0.0.1:7777)        Failure: INVALID_SPEC    invalid spec
json: cannot unmarshal number into Go struct field Spec.addresses of type string
Error: at least one test connection failed
❯ cloudquery test-connection pg-elastic
Loading spec(s) from pg-elastic
Test Connection Results
source       postgresql (cloudquery/postgresql@v6.2.3)  Success
destination  elasticsearch (grpc@127.0.0.1:7777)        Success

@blesniewski blesniewski requested a review from savme July 12, 2024 15:26
@blesniewski blesniewski added the automerge Automatically merge once required checks pass label Jul 15, 2024
@kodiakhq kodiakhq bot merged commit 95e656e into main Jul 15, 2024
@kodiakhq kodiakhq bot deleted the feat/elasticsearch-destination-connection-test branch July 15, 2024 11:55
kodiakhq bot pushed a commit that referenced this pull request Jul 16, 2024
🤖 I have created a release *beep* *boop*
---


## [3.4.0](plugins-destination-elasticsearch-v3.3.4...plugins-destination-elasticsearch-v3.4.0) (2024-07-16)


### Features

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


### 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).
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants