Skip to content

Commit

Permalink
#140 Added the itde nameserver
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Sep 26, 2024
1 parent f6c9042 commit 8ec6f9d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ jobs:
PYTEST_ADDOPTS: '${{ steps.pytest-markers.outputs.slow-tests }}'
run: |
echo "PYTEST_ADDOPTS = $PYTEST_ADDOPTS"
poetry run pytest --backend=onprem tests
poetry run pytest --backend=onprem --itde-nameserver="8.8.8.8" tests
2 changes: 1 addition & 1 deletion tests/deployment/test_deploy_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest
from click.testing import CliRunner
import exasol.bucketfs as bfs

from exasol_sagemaker_extension.deployment import deploy_cli
from tests.ci_tests.utils.parameters import get_arg_list
Expand Down Expand Up @@ -41,6 +40,7 @@ def get_all_scripts(db_conn):
def test_deploy_cli_main(pyexasol_connection, deploy_params):

args_list = get_arg_list(**deploy_params, schema=DB_SCHEMA)
args_list.append("--no-use-ssl-cert-validation")

runner = CliRunner()
result = runner.invoke(deploy_cli.main, args_list)
Expand Down
4 changes: 3 additions & 1 deletion tests/deployment/test_deploy_create_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def get_all_scripts(db_conn):
@pytest.mark.slow
def test_deploy_create_statements(pyexasol_connection, deploy_params):

DeployCreateStatements.create_and_run(**deploy_params, schema=DB_SCHEMA)
DeployCreateStatements.create_and_run(**deploy_params,
use_ssl_cert_validation=False,
schema=DB_SCHEMA)

all_schemas = get_all_schemas(pyexasol_connection)
all_scripts = get_all_scripts(pyexasol_connection)
Expand Down
4 changes: 3 additions & 1 deletion tests/fixtures/prepare_environment_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def _insert_into_tables(db_conn, model_setup):
def _setup_database(db_conn: pyexasol.ExaConnection, deploy_params: dict[str, Any]):
for model_setup in [reg_model_setup_params, cls_model_setup_params]:
_open_schema(db_conn, model_setup)
DeployCreateStatements.create_and_run(**deploy_params, schema=model_setup.schema_name)
DeployCreateStatements.create_and_run(**deploy_params,
use_ssl_cert_validation=False,
schema=model_setup.schema_name)
_create_tables(db_conn, model_setup)
_insert_into_tables(db_conn, model_setup)

Expand Down
4 changes: 1 addition & 3 deletions tests/fixtures/script_deployment_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ def _translate_params(source: dict[str, Any], param_map: dict[str, str]) -> dict

@pytest.fixture(scope="session")
def deploy_params(backend_aware_database_params, deployed_slc) -> dict[str, Any]:
d_params = _translate_params(backend_aware_database_params, _deploy_param_map)
d_params['use_ssl_cert_validation'] = False
return d_params
return _translate_params(backend_aware_database_params, _deploy_param_map)

0 comments on commit 8ec6f9d

Please sign in to comment.