Skip to content

Commit

Permalink
Removed remaining references to old slc_deployer implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Sep 24, 2024
1 parent 695e46c commit 15dd59a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ def _get_parameter(self, ctx):

def _create_bucketfs_location(self):
bucketfs_connection_obj = self.exa.get_connection(self.parameter.temporary_bfs_location_conn)
# causes IndexError: tuple index out of range
# in bucket_name = url_path.parts[1],
bucketfs_location_from_con = BucketFSFactory().create_bucketfs_location(
url=bucketfs_connection_obj.address,
user=bucketfs_connection_obj.user,
Expand Down
6 changes: 0 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# the commented out plugins are obsolete after removing
# tests/deployment/test_scripts_deployer.py and
# tests/deployment/test_scripts_deployer_cli.py

pytest_plugins = [
# "tests.integration_tests.with_db.fixtures.build_language_container_fixture",
# "tests.integration_tests.with_db.fixtures.upload_language_container_fixture",
"tests.integration_tests.with_db.fixtures.setup_database_fixture",
"tests.unit_tests.query_handler.fixtures"
]

This file was deleted.

28 changes: 0 additions & 28 deletions tests/utils/revert_language_settings.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
import contextlib
import pyexasol # type: ignore
import pytest
from tests.utils.parameters import db_params

# obsolete, only used by
# tests/deployment/test__deployer_cli.py
# tests/deployment/test__deployer.py
def revert_language_settings_old(func):
def wrapper(language_alias, schema, db_conn,
container_path, language_settings):
try:
return func(language_alias, schema, db_conn,
container_path, language_settings)
except Exception as exc:
print("Exception occurred while running the test: %s" % exc)
raise pytest.fail(exc)
finally:
print("Revert language settings")
db_conn_revert = pyexasol.connect(
dsn=db_params.address(),
user=db_params.user,
password=db_params.password)
db_conn_revert.execute(f"ALTER SYSTEM SET SCRIPT_LANGUAGES="
f"'{language_settings[0][0]}';")
db_conn_revert.execute(f"ALTER SESSION SET SCRIPT_LANGUAGES="
f"'{language_settings[0][1]}';")

return wrapper


@contextlib.contextmanager
def revert_language_settings(connection: pyexasol.ExaConnection):
Expand Down

0 comments on commit 15dd59a

Please sign in to comment.