-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GenerixSQL: update docker image with cryptography (#34754)
* add cryptography * Empty-Commit to trigger build * workarond for freetds-1.1.39 --------- Co-authored-by: sapirshuker <[email protected]>
- Loading branch information
1 parent
6589ea1
commit 9c06eb3
Showing
4 changed files
with
206 additions
and
4 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | |
import psycopg2 | ||
import cx_Oracle | ||
import teradatasqlalchemy | ||
import pymysql | ||
|
||
assert 'FreeTDS' in pyodbc.drivers() | ||
assert 'ODBC Driver 18 for SQL Server' in pyodbc.drivers(), pyodbc.drivers() | ||
|
@@ -15,7 +16,6 @@ | |
except Exception as ex: | ||
assert 'ORA-12162' in str(ex) | ||
|
||
|
||
# freetds test | ||
engine = sqlalchemy.create_engine('mssql+pyodbc:///testuser:[email protected]:1433/TEST?driver=FreeTDS') | ||
try: | ||
|
@@ -26,4 +26,11 @@ | |
# teradata test: raises sqlalchemy.exc.NoSuchModuleError if the plugin is not installed | ||
eng = sqlalchemy.create_engine('teradatasql://guest:foo@bar') | ||
|
||
# test there no missing 'cryptography' module | ||
try: | ||
pymysql._auth.sha2_rsa_encrypt(b'test', b'test', 'test') | ||
except TypeError as ex: | ||
assert "argument 'data': from_buffer() cannot return the address of a unicode object" in str(ex) | ||
|
||
|
||
print("All is good. All imported successfully") |