-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fix(databases): test connection api endpoint #10824
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a comment and lint is failing
superset/databases/schemas.py
Outdated
description=encrypted_extra_description, validate=encrypted_extra_validator | ||
description=encrypted_extra_description, | ||
validate=encrypted_extra_validator, | ||
allow_none=True, | ||
) | ||
server_cert = fields.String( | ||
description=server_cert_description, validate=server_cert_validator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably need allow_none=True
for server_cert also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be awesome if you could add a couple of simple tests that assert this fix is useful server_cert=null
etc..
* fix test connection with extra * fix lint and allow_none server_cert * update test connection tests
SUMMARY
extra
field format for test connection api endpointBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION