Skip to content

Commit

Permalink
debugging the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Apr 2, 2024
1 parent 1d759f8 commit 9e75c10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/test_itde_manager_in_docker_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def itde_stop_and_restart():

def run_test():
from pathlib import Path
import time

from exasol_integration_test_docker_environment.lib.docker import ContextDockerClient
from exasol.nb_connector.ai_lab_config import AILabConfig
Expand All @@ -208,6 +209,7 @@ def run_test():
secrets.save(AILabConfig.disk_size.value, "4")

bring_itde_up(secrets)
time.sleep(10)
status = get_itde_status(secrets)
# ----- Debugging ------
if status is ItdeContainerStatus.RUNNING:
Expand All @@ -225,6 +227,7 @@ def run_test():
# Disconnect calling container from Docker-DB network
_remove_current_container_from_db_network(secrets)
status = get_itde_status(secrets)
time.sleep(10)
assert status is ItdeContainerStatus.RUNNING, f'The status after disconnecting the container is {status}'

# Stop the Docker-DB container.
Expand All @@ -236,6 +239,7 @@ def run_test():

restart_itde(secrets)
status = get_itde_status(secrets)
time.sleep(10)
assert status is ItdeContainerStatus.READY, f'The status after restarting ITDE is {status}'

function_source_code = textwrap.dedent(dill.source.getsource(run_test))
Expand Down

0 comments on commit 9e75c10

Please sign in to comment.