Skip to content

Commit

Permalink
#70 Fixed the slc cli integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Oct 3, 2024
1 parent f10c3da commit 541d9c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import tempfile
import ssl
import requests # type: ignore
import warnings
import pyexasol # type: ignore
import exasol.bucketfs as bfs # type: ignore
from exasol.saas.client.api_access import (get_connection_params, get_database_id) # type: ignore
Expand Down Expand Up @@ -330,7 +331,12 @@ def create(cls,
use_ssl_cert_validation: bool = True, ssl_trusted_ca: Optional[str] = None,
ssl_client_certificate: Optional[str] = None,
ssl_private_key: Optional[str] = None) -> "LanguageContainerDeployer":

warnings.warn(
"create() function is deprecated and will be removed in a future version. "
"For CLI use the LanguageContainerDeployerCli class instead.",
DeprecationWarning,
stacklevel=2
)
# Infer where the database is - on-prem or SaaS.
if all((dsn, db_user, db_password, bucketfs_host, bucketfs_port,
bucketfs_name, bucket, bucketfs_user, bucketfs_password)):
Expand Down
4 changes: 3 additions & 1 deletion test/integration/cli/test_language_container_deployer_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
open_pyexasol_connection)
from exasol.python_extension_common.cli.language_container_deployer_cli import (
LanguageContainerDeployerCli)
from test.utils.db_utils import assert_udf_running
from test.utils.db_utils import (assert_udf_running, open_schema)

CONTAINER_URL_ARG = 'container_url'
CONTAINER_NAME_ARG = 'container_name'
Expand Down Expand Up @@ -73,6 +73,7 @@ def test_slc_deployer_cli_onprem_url(use_onprem,
runner.invoke(cmd, args=args)

with open_pyexasol_connection(**onprem_params) as conn:
open_schema(conn, db_schema)
assert_udf_running(conn, language_alias, db_schema)


Expand All @@ -96,4 +97,5 @@ def test_slc_deployer_cli_onprem_file(use_onprem,
runner.invoke(cmd, args=args)

with open_pyexasol_connection(**onprem_params) as conn:
open_schema(conn, db_schema)
assert_udf_running(conn, language_alias, db_schema)

0 comments on commit 541d9c6

Please sign in to comment.