-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #45 Added get_connection_params * #45 Got mypy shut up * #45 Fixed the scope of the database_name fixture * #45 Removed the hack from the api __init__.py * #45 Moved the connection tests to a separate file * Prepare release 0.6.0
- Loading branch information
Showing
10 changed files
with
597 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# 0.5.0 - 2024-05-16 | ||
|
||
# Bugfixes | ||
## Bugfixes | ||
|
||
* Fixed typehint for optional argument to enable usage with python 3.9 |
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,13 @@ | ||
# 0.6.0 - 2024-05-21 | ||
|
||
## Feature | ||
|
||
* #45 Added a helper function to assemble DB connection parameters. | ||
|
||
## Bugfixes | ||
|
||
* #44 Fixed the return value of the operational_saas_database_id fixture. | ||
|
||
## Refactoring | ||
|
||
* #19: Removed slack notifications for events other than `schedule` |
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
# Unreleased | ||
|
||
This release removes slack notifications for events other than `schedule`. | ||
|
||
## Refactoring | ||
|
||
* #19: Removed slack notifications for events other than `schedule` |
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
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import pyexasol | ||
from exasol.saas.client.api_access import get_connection_params | ||
|
||
|
||
def test_get_connection_params_with_id(saas_host, saas_pat, saas_account_id, | ||
operational_saas_database_id, | ||
allow_connection): | ||
""" | ||
This integration test checks that opening a pyexasol connection to a SaaS DB with | ||
known id and executing a query works. | ||
""" | ||
connection_params = get_connection_params(host=saas_host, | ||
account_id=saas_account_id, | ||
pat=saas_pat, | ||
database_id=operational_saas_database_id) | ||
with pyexasol.connect(**connection_params) as pyconn: | ||
result = pyconn.execute('SELECT 1;').fetchall() | ||
assert result == [(1,)] | ||
|
||
|
||
def test_get_connection_params_with_name(saas_host, saas_pat, saas_account_id, | ||
operational_saas_database_id, database_name, | ||
allow_connection): | ||
""" | ||
This integration test checks that opening a pyexasol connection to a SaaS DB with | ||
known name and executing a query works. | ||
""" | ||
connection_params = get_connection_params(host=saas_host, | ||
account_id=saas_account_id, | ||
pat=saas_pat, | ||
database_name=database_name) | ||
with pyexasol.connect(**connection_params) as pyconn: | ||
result = pyconn.execute('SELECT 1;').fetchall() | ||
assert result == [(1,)] |
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