-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libexasolodbc driver to 7.1.11 (#158)
* Update libexasolodbc driver to 7.1.11 * Add new driver library 7.1.11 * Add test to check safe tls default * Adjust test settings to allow self signed certificates * Update deadlock test(s) * Bump version to 3.0.3 Note: Testing the actual ssl/tls should be done by the driver itself, this is considered out of scope for this library. Still a basic test verifying that the default settings are safe (will fail) was added. Co-authored-by: Umit Cavus Buyuksahin <[email protected]>
- Loading branch information
1 parent
944a8c2
commit 88f7c28
Showing
8 changed files
with
73 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
|
||
MAJOR = 3 | ||
MINOR = 0 | ||
PATCH = 2 | ||
PATCH = 3 | ||
|
||
VERSION = f"{MAJOR}.{MINOR}.{PATCH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import copy | ||
import pytest | ||
import sqlalchemy.exc | ||
from sqlalchemy import create_engine | ||
from sqlalchemy.testing.fixtures import config, TestBase | ||
|
||
|
||
class CertificateTest(TestBase): | ||
|
||
def test_db_connection_fails_with_default_settings_for_self_signed_certificates(self): | ||
url = copy.deepcopy(config.db.url) | ||
if 'SSLCertificate' in url.query: | ||
del url.query['SSLCertificate'] | ||
|
||
engine = create_engine(url) | ||
with pytest.raises(sqlalchemy.exc.DBAPIError) as exec_info: | ||
# we expect the connect call to fail, but want to close it in case it succeeds | ||
with engine.connect() as conn: | ||
pass | ||
|
||
assert "self signed certificate" in f'{exec_info.value}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters