-
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
feat(db-engine-specs): add support for Postgres root cert #11720
Conversation
a88d49d
to
dc58243
Compare
@@ -148,7 +148,6 @@ def test_create_database(self): | |||
database_data = { | |||
"database_name": "test-create-database", | |||
"sqlalchemy_uri": example_db.sqlalchemy_uri_decrypted, | |||
"server_cert": ssl_certificate, |
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.
Enabling the ssl_certificate
fixture raises an error when trying to access the example database on Postgres (as it should), therefore this needs to be removed.
dc58243
to
77abb23
Compare
Codecov Report
@@ Coverage Diff @@
## master #11720 +/- ##
==========================================
+ Coverage 65.97% 70.67% +4.70%
==========================================
Files 1015 529 -486
Lines 49548 19779 -29769
Branches 5080 5129 +49
==========================================
- Hits 32687 13978 -18709
+ Misses 16714 5671 -11043
+ Partials 147 130 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
77abb23
to
d847839
Compare
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.
LGTM, minor comment
0ba5fa6
to
eb7d7ba
Compare
eb7d7ba
to
69e38c3
Compare
* feat(db-engine-specs): add support for Postgres root cert * remove logging of json decode exception message * fix error message * fix error message
SUMMARY
Add support for SSL root cert verification to Postgres. Also add proper error message for incorrect test request if e.g.
extra
is not parseable (see screenshot below).BEFORE
With the following unparseable database extra object, the following toast is raised (does not actually show on some versions of Chrome):
AFTER
The new error toast shows the marshmallow error:
When also specifying an incorrect connection string, the following error is displayed (both errors are displayed):
TEST PLAN
CI + new tests. Also added missing tests to Druid connector.
ADDITIONAL INFORMATION