Skip to content

Commit

Permalink
SaasBucket test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shmuma committed Dec 23, 2024
1 parent 7957f59 commit 7d16ef0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/test_cloud_storage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pytest
from exasol.nb_connector.secret_store import Secrets
from exasol.nb_connector.github import retrieve_jar, Project
from exasol.nb_connector.connections import open_bucketfs_connection, open_pyexasol_connection
Expand All @@ -19,3 +20,11 @@ def test_cloud_storage_setup_scripts(
setup_scripts(db_conn, secrets.db_schema, str(bfs_jar_path))
counts = get_script_counts(db_conn, secrets)
assert counts['UDF'] == 3


# this test was used to check SaaS integration tests, but
# might be broken if SaaSBucket will support iteration eventually
def test_saas_bucket_cannot_be_iterated(secrets: Secrets, setup_itde):
bucket = open_bucketfs_connection(secrets)
with pytest.raises(TypeError, match="not iterable"):
list(bucket)

0 comments on commit 7d16ef0

Please sign in to comment.