Skip to content

Commit

Permalink
restoring all integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Apr 2, 2024
1 parent 78648cd commit 1ea8d9a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions test/integration/test_cloud_storage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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 @@ -8,7 +7,6 @@
from test.utils.integration_test_utils import setup_itde, get_script_counts


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_cloud_storage_setup_scripts(
secrets: Secrets,
setup_itde
Expand Down
10 changes: 0 additions & 10 deletions test/integration/test_itde_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from exasol_integration_test_docker_environment.lib.docker import ( # type: ignore
ContextDockerClient,
)
Expand Down Expand Up @@ -29,22 +28,19 @@
DB_CONTAINER_NAME = "db_container_DemoDb"


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def remove_itde():
remove_docker_container([DB_CONTAINER_NAME])
remove_docker_networks([DB_NETWORK_NAME])
remove_docker_volumes([DB_VOLUME_NAME])


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def stop_itde(conf: Secrets):
container_name = conf.get(AILabConfig.itde_container)
with ContextDockerClient() as docker_client:
container = docker_client.containers.get(container_name)
container.stop()


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_bring_itde_up(secrets):
secrets.save(AILabConfig.mem_size, "2")
secrets.save(AILabConfig.disk_size, "4")
Expand All @@ -69,7 +65,6 @@ def test_bring_itde_up(secrets):
remove_itde()


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_exists_and_running(secrets):
secrets.save(AILabConfig.mem_size, "2")
secrets.save(AILabConfig.disk_size, "4")
Expand All @@ -82,14 +77,12 @@ def test_itde_exists_and_running(secrets):
remove_itde()


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_neither_exists_nor_running(secrets):
remove_itde()
itde_status = get_itde_status(secrets)
assert itde_status is ItdeContainerStatus.ABSENT


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_exists_not_running(secrets):
secrets.save(AILabConfig.mem_size, "2")
secrets.save(AILabConfig.disk_size, "4")
Expand All @@ -103,7 +96,6 @@ def test_itde_exists_not_running(secrets):
remove_itde()


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_start(secrets):
secrets.save(AILabConfig.mem_size, "2")
secrets.save(AILabConfig.disk_size, "4")
Expand All @@ -118,7 +110,6 @@ def test_itde_start(secrets):
remove_itde()


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_take_itde_down(secrets):
secrets.save(AILabConfig.mem_size, "2")
secrets.save(AILabConfig.disk_size, "4")
Expand All @@ -145,7 +136,6 @@ def test_take_itde_down(secrets):
remove_itde()


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_take_itde_down_is_not_itde_running(secrets):
secrets.save(AILabConfig.mem_size, "2")
secrets.save(AILabConfig.disk_size, "4")
Expand Down
4 changes: 0 additions & 4 deletions test/integration/test_itde_manager_in_docker_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import textwrap
from inspect import cleandoc
from pathlib import Path
import pytest

import dill
import pytest
Expand Down Expand Up @@ -272,19 +271,16 @@ def docker_container(wheel_path, docker_image,
remove_docker_container([container.id])


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_connect(docker_container):
exec_result = docker_container.exec_run("python3 /tmp/itde_connect_test_impl.py")
assert exec_result.exit_code == 0, exec_result.output


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_recreation_after_take_down(docker_container):
exec_result = docker_container.exec_run("python3 /tmp/itde_recreation_after_take_down.py")
assert exec_result.exit_code == 0, exec_result.output


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_itde_recreation_without_take_down(docker_container):
exec_result = docker_container.exec_run("python3 /tmp/itde_recreation_without_take_down.py")
assert exec_result.exit_code == 0, exec_result.output
Expand Down
2 changes: 0 additions & 2 deletions test/integration/test_sagemaker_extension_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from exasol.nb_connector.sagemaker_extension_wrapper import initialize_sme_extension
from exasol.nb_connector.connections import open_pyexasol_connection
from exasol.nb_connector.secret_store import Secrets
Expand All @@ -12,7 +11,6 @@
)


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_initialize_sme_extension(
secrets: Secrets,
setup_itde
Expand Down
2 changes: 0 additions & 2 deletions test/integration/test_transformers_extension_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from _pytest.fixtures import FixtureRequest

from exasol.nb_connector.connections import open_pyexasol_connection
Expand All @@ -14,7 +13,6 @@
)


@pytest.mark.skip(reason="Debugging the test_itde_stop_and_restart")
def test_initialize_te_extension(
request: FixtureRequest,
secrets: Secrets,
Expand Down

0 comments on commit 1ea8d9a

Please sign in to comment.