Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(emqx_bridge): add /bridges_probe API endpoint #9585

Conversation

sstrigler
Copy link
Contributor

@sstrigler sstrigler commented Dec 20, 2022

Fixes EMQX-8571

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/emqx/emqx/blob/master/CONTRIBUTING.md.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Changed lines covered in coverage report
  • Change log has been added to changes/ dir
  • For internal contributor: there is a jira ticket to track this change
  • Coordinate with Dashboard-Team

@sstrigler sstrigler marked this pull request as draft December 20, 2022 15:14
apps/emqx_bridge/src/emqx_bridge_api.erl Outdated Show resolved Hide resolved
apps/emqx_bridge/i18n/emqx_bridge_api.conf Outdated Show resolved Hide resolved
apps/emqx_bridge/i18n/emqx_bridge_api.conf Outdated Show resolved Hide resolved
@sstrigler sstrigler force-pushed the EMQX-8571-bring-back-connectors-test-as-bridge-test branch 4 times, most recently from 63cbd5e to bd72c14 Compare December 21, 2022 13:17
@sstrigler sstrigler force-pushed the EMQX-8571-bring-back-connectors-test-as-bridge-test branch from bd72c14 to 0a77c48 Compare December 21, 2022 13:20
@sstrigler sstrigler changed the base branch from master to dev/api-refactor December 21, 2022 13:31
@sstrigler sstrigler changed the title feat: add /bridges_test API endpoint feat(emqx_bridge): add /bridges_probe API endpoint Dec 21, 2022
@zmstone
Copy link
Member

zmstone commented Dec 21, 2022

as discussed: should follow up with PR to refactor

  • make resource creating dry_run timeout configurable (currently 15 seconds)
  • remove the gen_tcp:connect probing from outside the resource implementation

end.

parse_url(Url) ->
case string:split(Url, "//", leading) of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe uri_string:parse could be used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next time, going to be deleted anyway :)

apps/emqx_bridge/src/emqx_bridge_api.erl Outdated Show resolved Hide resolved
@sstrigler sstrigler marked this pull request as ready for review December 22, 2022 13:46
@sstrigler
Copy link
Contributor Author

Follow up ticket: https://emqx.atlassian.net/browse/EMQX-8588

@sstrigler sstrigler merged commit 32cb181 into emqx:dev/api-refactor Dec 22, 2022
@sstrigler sstrigler deleted the EMQX-8571-bring-back-connectors-test-as-bridge-test branch February 17, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants