From f9aed53fdb09b1a2faf6a0d058ac0563e4d99653 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Tue, 22 Oct 2024 05:55:30 -0300 Subject: [PATCH] #335: Fixed DNS resolution in ITDE when running jupyter notebook tests (#336) closes #335 --- doc/changes/changes_3.2.0.md | 5 +++++ .../runtime/ansible/roles/docker/defaults/main.yml | 2 +- .../test_notebooks_in_dss_docker_image.py | 8 ++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/changes/changes_3.2.0.md b/doc/changes/changes_3.2.0.md index e4fbbf63..1995335f 100644 --- a/doc/changes/changes_3.2.0.md +++ b/doc/changes/changes_3.2.0.md @@ -3,3 +3,8 @@ Code name: ## Summary + + +## Bug Fixes + + - #335: Fixed DNS resolution in ITDE when running jupyter notebook tests diff --git a/exasol/ds/sandbox/runtime/ansible/roles/docker/defaults/main.yml b/exasol/ds/sandbox/runtime/ansible/roles/docker/defaults/main.yml index fefb727c..732b2d66 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/docker/defaults/main.yml +++ b/exasol/ds/sandbox/runtime/ansible/roles/docker/defaults/main.yml @@ -3,5 +3,5 @@ apt_dependencies: - apt-transport-https=2.4.5 - gpg-agent=2.2.27-3ubuntu2.1 - - ca-certificates=20230311ubuntu0.22.04.1 + - ca-certificates=20240203~22.04.1 - software-properties-common=0.99.22.9 diff --git a/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py b/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py index 0bfd5003..7c4bd1d0 100644 --- a/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py +++ b/test/notebook_test_runner/test_notebooks_in_dss_docker_image.py @@ -80,8 +80,12 @@ def test_notebook(notebook_test_container_with_log, notebook_test_file, notebook command_echo_virtual_env = 'bash -c "echo $VIRTUAL_ENV"' virtual_env = exec_command(command_echo_virtual_env, container) command_run_test = ( - f"{virtual_env}/bin/python" - f" -m pytest --setup-show -s --backend={notebook_test_backend} {notebook_test_file}" + f"{virtual_env}/bin/python " + f"-m pytest --setup-show -s " + f"--backend={notebook_test_backend} " + f"--itde-nameserver='8.8.8.8' " + f"--itde-db-mem-size '4 GiB' " + f"{notebook_test_file}" ) environ = os.environ.copy() environ["NBTEST_ACTIVE"] = "TRUE"