Skip to content

Validate endpoints before creating them - #104

Merged
Dany9966 merged 3 commits into
cloudbase:mainfrom
mihaelabalutoiu:fix-endpoint-validate-and-save
Oct 28, 2026
Merged

Dany9966 merged 3 commits into
cloudbase:mainfrom
mihaelabalutoiu:fix-endpoint-validate-and-save

Conversation

@mihaelabalutoiu

@mihaelabalutoiu mihaelabalutoiu commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Previously, coriolis endpoint create created the endpoint first and validated it afterwards, so endpoints with invalid connection_info were saved even when the command reported a validation failure.

This PR implements the following:

  • Validate endpoints before creating them:
    • add validate_connection_info, which uses the new /endpoints/actions validation action and takes the platform and connection_info instead of an endpoint ID, and use it to validate before creating the endpoint, so invalid endpoints are no longer saved;
  • Add a CLI command to validate endpoint connection info:
    • add endpoint validate connection info, which validates the given platform and connection info without creating an endpoint;
  • Update the unit tests.

Add `validate_connection_info`, which uses the `/endpoints/actions`
validation action and takes the `platform` and `connection info` instead of
an endpoint ID, and use it to validate before creating the `endpoint`, so
invalid endpoints are no longer saved.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu
mihaelabalutoiu force-pushed the fix-endpoint-validate-and-save branch from 0f7dbe8 to 69305e3 Compare October 12, 2026 09:45
Add `endpoint validate connection info`, which validates the given
platform and connection info without creating an endpoint.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu
mihaelabalutoiu marked this pull request as ready for review October 13, 2026 10:28
@Dany9966
Dany9966 merged commit ec520b0 into cloudbase:main Oct 28, 2026
2 checks passed
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.

2 participants